Twitchapi

Latest version: v4.2.0

Safety actively analyzes 629994 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 8

3.2.1

- Fixed bug that resulted in a timeout when reading big API requests
- Optimized the use of Sessions, slight to decent performance optimization for API requests, especially for async generators

3.2.0

- Made the used loggers available for easy logging configuration
- added the option to set the chat command prefix via `Chat.set_prefix()`
- `Twitch.set_user_authentication()` now also throws a `MissingScopeException` when no scope is given. (thanks aw-was-here !)

3.1.0

- Added the Endpoint "Get Chatters"
- Added the `MODERATOR_READ_CHATTERS` AuthScope
- Added missing `total` field to `Twitch.get_users_follows()`
- added `send()` shorthand to ChatCommand, this makes sending command replies easier.
- Fixed issue which prevented the Twitch client being used inside a EventSub, PubSub or Chat callback
- Fixed issue with using the wrong API url in `Twitch.create_custom_reward()`
- `twitchAPI.helper.first()` now returns None when there is no data to return instead of raising StopAsyncIteration exception
- Exceptions in Chat callback methods are now properly displayed

3.0.1

- Fixed bug which resulted in `Timeout context manager should be used inside a task` when subscribing to more than one EventSub topic

3.0.0

**This Version is a major rework of the library. Please see the [migration guide](https://pytwitchapi.readthedocs.io/en/latest/v3-migration.html) to learn how to migrate.**

Highlights
- Library is now fully async
- Twitch API responses are now Objects and Generators instead of pure dictionaries
- Automatic Pagination of API results
- First alpha of a Chat Bot implementation
- More customizability for the UserAuthenticator
- A lot of new Endpoints where added
- New look and content for the documentation


Full Changelog
- Rewrote the twitchAPI to be async
- twitchAPI now uses Objects instead of dictionaries
- added automatic pagination to all relevant API endpoints
- PubSub now uses async callbacks
- EventSub subscribing and unsubscribing is now async
- Added a alpha version of a Twitch Chat Bot implementation
- switched AuthScope `CHANNEL_MANAGE_CHAT_SETTINGS` to `MODERATOR_MANAGE_CHAT_SETTINGS`
- Added the following AuthScopes:
- `MODERATOR_MANAGE_ANNOUNCEMENTS`
- `MODERATOR_MANAGE_CHAT_MESSAGES`
- `USER_MANAGE_CHAT_COLOR`
- `CHANNEL_MANAGE_MODERATORS`
- `CHANNEL_READ_VIPS`
- `CHANNEL_MANAGE_VIPS`
- `USER_MANAGE_WHISPERS`
- added `twitchAPI.helper.first()` helper function
- Added the following new Endpoints:
- "Send Whisper"
- "Remove Channel VIP"
- "Add Channel VIP"
- "Get VIPs"
- "Add Channel Moderator"
- "Remove Channel Moderator"
- "Get User Chat Color"
- "Update User Chat Color"
- "Delete Chat Message"
- "Send Chat Announcement"
- "Get Soundtrack Current Track"
- "Get Soundtrack Playlist"
- "Get Soundtrack Playlists"
- Removed the folllowing deprecated Endpoints:
- "Get Banned Event"
- "Get Moderator Events"
- "Get Webhook Subscriptions"
- The following Endpoints got changed:
- Added `igdb_id` search parameter to `Twitch.get_games()`
- Removed the Voting related fields in `Twitch.create_poll()` due to being deprecated
- Updated the logic in `Twitch.update_custom_reward()` to avoid API errors
- Removed `id` parameter from `Twitch.get_hype_train_events()`
- Fixed the range check in `Twitch.get_channel_information()`
- `Twitch.app_auth_refresh_callback` and `Twitch.user_auth_refresh_callback` are now async
- Added `oauth.get_user_info()`
- UserAuthenticator:
- You can now set the document that will be shown at the end of the Auth flow by setting `UserAuthenticator.document`
- The optional callback is now called with the access and refresh token instead of the user token
- Added browser controls to `UserAuthenticator.authenticate()`
- removed `requests` and `websockets` libraries from the requirements (resulting in smaller library footprint)

2.5.7

- Fixed the End Poll Endpoint
- Properly define terminated poll status (thanks iProdigy!)

Page 4 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.