skip to navigation
skip to content

twitchobserver 0.7.1

Turn Twitch chatter into Python events.

Latest Version: 0.7.6

# [![twitch-observer](.media/header.png)](

> Turn Twitch chatter into Python events.

# twitch-observer

[![License: GPL v3](](./LICENSE) [![Python 2](]( [![Python 3](]( [![Build Status](]( [![Documentation Status](](

twitchobserver makes interacting with Twitch chat super easy. It is built and tuned for realtime applications. You can make chatbots chat. You can build *Twitch Plays* video games.

## Features

- *Pure Python:* No extra dependencies. Just plain and simple Python.
- *Small API:* With a few classes and a handful of methods, you can learn it over a coffee break.
- *Event Based:* Makes writing apps easy and straightforward.
- *Context Manager:* Further simplifies working with observers.

## Installation

```$ pip install twitchobserver```

## Usage

from twitchobserver import Observer

observer = Observer('Nick', 'oauth:abcdefghijklmnopqrstuvwxyz0123')
observer.send_message('Hello and goodbye', 'channel')

## Documentation

API documentation can be found over on [](

## Tests

```$ python -m unittest discover -s tests```

## Examples

#### Echo bot

Whenever a message is sent, echo it back. The ```Observer``` is created as a [context manager object]( which will implicitly handle calling ```start()``` and ```stop()```.

import time
from twitchobserver import Observer

with Observer('Nick', 'oauth:abcdefghijklmnopqrstuvwxyz0123') as observer:

while True:
for event in observer.get_events():
if event.type == 'TWITCHCHATMESSAGE':


except KeyboardInterrupt:

More examples can be found in the [Cookbook](

## Contributors

[![Joshua Skelton](]( | [![Felix Siebeneicker](](
[Joshua Skelton]( | [Felix Siebeneicker](

## License

See the [license](./LICENSE) document for the full text.
File Type Py Version Uploaded on Size
twitchobserver-0.7.1.tar.gz (md5) Source 2017-07-17 6KB