Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tsifrer/python-twitch-client
Python wrapper for Twitch API
https://github.com/tsifrer/python-twitch-client
api client python twitch wrapper
Last synced: about 1 month ago
JSON representation
Python wrapper for Twitch API
- Host: GitHub
- URL: https://github.com/tsifrer/python-twitch-client
- Owner: tsifrer
- License: mit
- Created: 2017-02-12T01:05:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-20T15:48:05.000Z (9 months ago)
- Last Synced: 2024-07-19T17:58:25.184Z (5 months ago)
- Topics: api, client, python, twitch, wrapper
- Language: Python
- Homepage: http://python-twitch-client.readthedocs.io/
- Size: 222 KB
- Stars: 159
- Watchers: 10
- Forks: 42
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-twitch-dev - tsifrer/python-twitch-client - Python wrapper for Twitch API. (Libraries / Python)
README
python-twitch-client
====================[![Latest docs][docs-img]][docs]
[![Latest version][pypi-img]][pypi]
[![Latest build][ci-img]][gh-actions]
[![Coverage][codecov-img]][codecov]`python-twitch-client` is an easy to use Python library for accessing the
Twitch APIYou can find more information in the [documentation][docs] or for support, you can join the [Discord Server](https://discord.me/twitch-api).
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][issues] or
contribute and open a [pull request][pulls].Basic Usage
==============================================
Helix API```python
from itertools import islice
from twitch import TwitchHelixclient = TwitchHelix(client_id='')
streams_iterator = client.get_streams(page_size=100)
for stream in islice(streams_iterator, 0, 500):
print(stream)
```Twitch API v5
```python
from twitch import TwitchClientclient = TwitchClient(client_id='')
channel = client.channels.get_by_id(44322889)print(channel.id)
print(channel.name)
print(channel.display_name)
```[docs]: http://python-twitch-client.rtfd.io
[docs-img]: https://readthedocs.org/projects/python-twitch-client/badge/?version=latest (Latest docs)
[pulls]: https://github.com/tsifrer/python-twitch-client/pulls
[issues]: https://github.com/tsifrer/python-twitch-client/issues
[pypi]: https://pypi.python.org/pypi/python-twitch-client/
[pypi-img]: https://img.shields.io/pypi/v/python-twitch-client.svg
[codecov]: https://codecov.io/gh/tsifrer/python-twitch-client
[codecov-img]: https://codecov.io/gh/tsifrer/python-twitch-client/branch/master/graph/badge.svg
[gh-actions]: https://github.com/tsifrer/python-twitch-client/actions
[ci-img]: https://github.com/tsifrer/python-twitch-client/workflows/CI/badge.svg