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 10.0.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 | |
|---|---|---|---|
| cb_events-10.0.0.tar.gz | 249.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cb_events-10.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 273.4 kB
Release files / cb_events-10.0.0.tar.gz
| Download URL | cb_events-10.0.0.tar.gz |
|---|---|
| Size | 249.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ad225a940e6246e7465084b68553379e4991d2cc331b8e9c44e704a5983611f
|
|
BLAKE2b-256 checksum How to use checksums |
936c7dc2bed42f5c8599f5299b7642a14040de67ba5baf82ccc02da3e8da47d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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 Jul 31, 2026.
Transparency logRelease files / cb_events-10.0.0-py3-none-any.whl
| Download URL | cb_events-10.0.0-py3-none-any.whl |
|---|---|
| Size | 24.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
053c2353250fff39b9c36ef37e51407c80ea4d8a5a0f8fafe48acbdae325e62e
|
|
BLAKE2b-256 checksum How to use checksums |
9e3975bf1eb97f7d0ed3b84dd2dc6aa6eb630c33d73b0f9e7190351462de66de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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 Jul 31, 2026.
Transparency log