Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
py-twitch
is Twitch Helix REST API client library.
This library supports typing using dataclass, so you can use IDE's auto complete.
Api with OAuth is not implemented. It will be implemented in the future.
pip install py-twitch
every client method named method_url.
For example, GET https://api.twitch.tv/helix/users
is defined as get_users
from twitch.client import TwitchAPIClient
client_id = "YOUR CLIENT ID"
client_secret = "YOUR CLIENT SECRET"
client = TwitchAPIClient(client_id, client_secret)
# Default Example
pagination = None
while True:
data = client.get_users_follows(from_id="171003792", after=pagination)
pagination = data.pagination.cursor
for user in data.data:
print(f"{171003792} following {user.to_name}")
if not pagination:
break
from twitch.client import TwitchAPIClient
client_id = "YOUR CLIENT ID"
client_secret = "YOUR CLIENT SECRET"
client = TwitchAPIClient(client_id, client_secret)
# Multi Query Parameters Example
data = client.get_users(id=["141981764", "171003792"])
for user in data.data:
print(f"display_name is {user.display_name}")
print(data)
Implements OAuth Methods
Change fields(such as started_at) type to DateTimeField
Check Optional fields and List fields
FAQs
Twitch API Python client
We found that py-twitch 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.