
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Twitchy is an easy to use Twitch API wrapper with focus on the Helix API, webhooks, and chat.
Twitchy is an easy to use Twitch API wrapper with focus on the Helix API, webhooks, and chat.
.. image:: https://user-images.githubusercontent.com/7674344/100273792-5ae52d00-2f2b-11eb-9710-588aeec63a50.png :height: 371 :width: 507
.. code-block:: bash
pip install twitchy
.. code-block:: python
from twitchy import Helix
twitch = Helix(client_id="****", oauth_token="****")
me = twitch.get_user()
print(me.id)
print(me.display_name)
In January 2020, Twitch made a change that requires all requests to be accompanied by a User Access Token or an App Access Token.
To authenticate as a user, provide the OAuth token when instantiating Helix
.
.. code-block:: python
from twitchy import Helix
twitch = Helix(client_id="****", oauth_token="****")
To authenticate using an App Access Token
, just provide the Client ID and Client Secret,
and Twitchy will handle authorization for you when necessary.
.. code-block:: python
from twitchy import Helix
twitch = Helix(client_id="****", client_secret="****")
To get a Client ID and Client Secret, register an app on the Twitch Dev Console
_.
Methods on the Helix
class will all be named as obviously as possible by naming them
after the Twitch Helix endpoint they're interfacing with. You can find examples in our examples
folder.
Reference for Twitch Helix endpoints can be found in the Twitch Helix API documentation
_.
When writing a commit, be sure to use git commit
without the -m
to open the commitizen cli.
If contributing user-facing methods, be sure to use the included docstringsTemplate
mustache config for docstrings either via
editor extension, or manual process.
.. _Twitch Dev Console: https://dev.twitch.tv/ .. _Twitch Helix API Documentation: https://dev.twitch.tv/docs/api/reference
FAQs
Twitchy is an easy to use Twitch API wrapper with focus on the Helix API, webhooks, and chat.
We found that Twitchy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.