PewHits Radio SDK
A lightweight, async Python client SDK for interacting with PewHits Radio's WebSocket-based backend. This library enables applications and bots to fetch, queue, skip, block, and play songs seamlessly, using a request-response WebSocket pattern.
📦 Installation
Install directly from PyPI:
pip install pewhits-client-sdk==0.9
🚀 What's New in v0.1
- ✅ README.md added — now you know how to use it 😄
- 🎯 Cleaned up and documented all data models
- 🔄 Structured request/response pattern with
ridsupport - 🧠 Strong typing and cleaner logic
- 🧹 Ready for production bots and clients
🎵 Features
- Get now playing song
- See next coming song
- View full queue
- Skip current song
- Block/Unblock tracks
- Remove songs from queue
- Play any Spotify track
- Auto keepalive ping support
- Full radio reload request
🧹 Request/Response Models
🔁 Standard Requests
| Request Class | Response Returned |
|---|---|
NowPlayingRequest |
NowPlayingResponse |
NextComingRequest |
NextComingResponse |
QueueRequest |
QueueResponse |
BlocklistRequest |
BlocklistResponse |
SkipSongRequest |
SkipSongResponse |
BlockSongRequest |
BlockSongResponse |
UnblockSongRequest |
UnblockSongResponse |
RemoveSongRequest |
RemoveSongResponse |
PlaySongRequest |
PlaySongResponse |
ReloadAllRequest |
ReloadAllResponse |
KeepaliveRequest |
KeepaliveResponse |
📦 Data Models
NowPlayingSongNextComingSongQueueSongBlockedSongs
These are returned inside each respective .data field.
🧪 Development
Want to run and test locally?
git clone https://github.com/chitranshsh/pewhits-client-sdk.git
cd pewhits-client-sdk
pip install -e .
Or if you're using poetry:
poetry install
poetry run pytest
🤝 Contributing
All improvements are welcome 💡 Feel free to open issues or submit a PR!
📄 License
License © 2025 Chitransh Shrivastava
🌐 Links
- PyPI: https://pypi.org/project/pewhits-client-sdk
- GitHub: https://github.com/chitranshsh/pewhits-client-sdk
💖 Author
Chitransh Shrivastava CS B.Tech + Open Source Builder 💻 Find me on GitHub
Made with love and music 🎶💫
Metadata
Release files for pewhits-client-sdk 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pewhits_client_sdk-0.9.0.tar.gz | 8.2 kB | Without provenance | Details for pewhits_client_sdk-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pewhits_client_sdk-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for pewhits_client_sdk-0.9.0-py3-none-any.whl |
Total release size: 15.7 kB
Release files / pewhits_client_sdk-0.9.0.tar.gz
| Download URL | pewhits_client_sdk-0.9.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
352d1d92c66c1e47fc67fa0e6c3c77b78eb15f116285f6c9062ee24c65545723
|
|
BLAKE2b-256 checksum How to use checksums |
ffa64ce356b06e60015a9fdd2c4a85d320eaa46b867989679977939c1c7428df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Release files / pewhits_client_sdk-0.9.0-py3-none-any.whl
| Download URL | pewhits_client_sdk-0.9.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d88ec874273eb630e737887895cc9457f247761f55b75d65d08803520d2a3434
|
|
BLAKE2b-256 checksum How to use checksums |
39037d72b243599db73592e33df2e95f286be564dc33bc2eff821c1aea087026
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.9
|
Security for pewhits-client-sdk 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.