ptc
python-twitch-client
pypi i python-twitch-client
ptc

python-twitch-client

Python wrapper for Twitch API

by Tomaž Šifrer

0.7.1 (see all)License:MITCategories:Vanilla Python Twitch API
pypi i python-twitch-client
Readme

python-twitch-client

Latest docs Latest version Latest build Coverage

python-twitch-client is an easy to use Python library for accessing the Twitch API

You can find more information in the documentation or for support, you can join the Discord Server.

Note

python-twitch-client currently supports Twitch API v5 and the new Helix API.

If you find a missing endpoint or a bug please raise an issue or contribute and open a pull request.

Basic Usage

Helix API

from itertools import islice
from twitch import TwitchHelix

client = TwitchHelix(client_id='<my client id>')
streams_iterator = client.get_streams(page_size=100)
for stream in islice(streams_iterator, 0, 500):
    print(stream)

Twitch API v5

from twitch import TwitchClient

client = TwitchClient(client_id='<my client id>')
channel = client.channels.get_by_id(44322889)

print(channel.id)
print(channel.name)
print(channel.display_name)

GitHub Stars

145

LAST COMMIT

1yr ago

MAINTAINERS

1

CONTRIBUTORS

23

OPEN ISSUES

12

OPEN PRs

1
VersionTagPublished
0.7.1
2yrs ago
0.7.0
2yrs ago
0.6.0
4yrs ago
0.5.1
4yrs ago
No tutorials found
Add a tutorial