Python Twitch API

This is a full implementation of the Twitch Helix API, its Webhook, PubSub and EventSub in python 3.7+.

On Github: https://github.com/Teekeks/pyTwitchAPI

On PyPi: https://pypi.org/project/twitchAPI/

Visit the Changelog to see what has changed.

Installation

Install using pip:

`pip install twitchAPI`

Support

For Support please join the Twitch API Discord server.

Usage

For more detailed usage examples, see the links below

from twitchAPI.twitch import Twitch
from pprint import pprint
twitch = Twitch('my_app_key', 'my_app_secret')
pprint(twitch.get_users(logins=['your_twitch_username']))

See twitchAPI.twitch for more details on how to set Authentication.

Logging

This module uses the logging module for creating Logs. Valid loggers are:

  • twitchAPI.twitch

  • twitchAPI.eventsub

  • twitchAPI.pubsub

  • twitchAPI.oauth

  • twitchAPI.webhook

Indices and tables

twitchAPI.twitch

The Twitch API client

twitchAPI.eventsub

Full Implementation of the Twitch EventSub

twitchAPI.pubsub

PubSub client

twitchAPI.webhook

Full Implementation of the Twitch Webhook

twitchAPI.oauth

User OAuth Authenticator and helper functions

twitchAPI.types

Type Definitions

twitchAPI.helper

Helper functions