A Python library for Twitch's WebSocket EventSub integration.
Project description
Twitchify
Python library for Twitch's WebSocket EventSub integration
Features
- Comprehensive support for WebSocket EventSub, providing real-time Twitch event notifications.
- User-friendly interfaces for seamless integration.
- Built-in support for type hinting, ensuring code clarity and maintainability.
Installation
You can install Twitchify using pip:
# Windows
py -3 -m pip install -U twitchify
# Linux/macOS
python3 -m pip install -U twitchify
Documentation
Please refer to the Events Documentation for detailed information on handling events with Twitchify.
Quick Example
from twitch import Client
from twitch.user import Follower
client = Client(client_id="CLIENT ID HERE")
@client.event
async def on_ready():
"""
Event handler triggered when the client is ready to start processing events.
"""
print("Ready as %s" % client.user.display_name)
@client.event
async def on_follow(user: Follower):
"""
Event handler triggered when a user follows the channel.
"""
print("%s just followed you!" % user.display_name)
client.run(access_token="USER ACCESS TOKEN HERE")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
twitchify-1.1.2.tar.gz
(28.0 kB
view hashes)
Built Distribution
twitchify-1.1.2-py3-none-any.whl
(57.1 kB
view hashes)
Close
Hashes for twitchify-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dee7929240ac4d04ae4e2796ea41a05efe1d12d6d6505788b3dd1d76ada8de5d |
|
MD5 | a9171711d6832c2959373c10a3fc9c6b |
|
BLAKE2b-256 | 45b031a979aca33e1579ecc5812e91beb1b55268b7481dea2707b22f07fc3e9b |