cb-events
Async Python client for the Chaturbate Events API.
Provides event polling, typed models, retries, and routing.
Requirements
Python 3.11+
Installation
pip install cb-events
With uv:
uv add cb-events
Quick Start
import asyncio
from cb_events import Event, EventClient, EventType, Router
router = Router()
events_url = "https://eventsapi.chaturbate.com/events/your_username/your_api_token/"
@router.on(EventType.TIP)
async def handle_tip(event: Event) -> None:
if event.user and event.tip:
print(f"{event.user.username} tipped {event.tip.tokens} tokens")
async def main() -> None:
async with EventClient(events_url) as client:
async for event in client:
await router.dispatch(event)
asyncio.run(main())
Create an API token at https://chaturbate.com/statsapi/authtoken/ with Events API scope.
Features
- Async iterator client for long-polling events.
- Typed event models for tips, chat/messages, follows, broadcasts, and other event types.
- Router handlers are registered by event type.
- Retry and rate-limiting support.
- Client configuration for timeouts, strict validation, and retries.
Links
License
MIT
Not affiliated with Chaturbate.
Metadata
Release files for cb-events 11.0.1
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 |
|---|---|---|---|---|
| cb_events-11.0.1.tar.gz | 72.7 kB | With provenance | Details for cb_events-11.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cb_events-11.0.1-py3-none-any.whl | Python 3 | none | any | Details for cb_events-11.0.1-py3-none-any.whl |
Total release size: 100.3 kB
Release files / cb_events-11.0.1.tar.gz
| Download URL | cb_events-11.0.1.tar.gz |
|---|---|
| Size | 72.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c66bf1d88a0b11dec76193cce3262690527b7a5048bb5f2c40da0e77ae3a0891
|
|
BLAKE2b-256 checksum How to use checksums |
bd92dd9539975e3b9d3710801172889f433f6f727c49da684d3b6e66417fa9e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logRelease files / cb_events-11.0.1-py3-none-any.whl
| Download URL | cb_events-11.0.1-py3-none-any.whl |
|---|---|
| Size | 27.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6aecd6fe73322198ef5d350173b6a0796b977f2e521c7076fb7a78d34bcd99b3
|
|
BLAKE2b-256 checksum How to use checksums |
302fb3af64d8769fd7468f54caf4798d54ff5b750605b9717fe56d1c63370a2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logSecurity for cb-events 11.0.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for cb_events-11.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logA 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.