fishjam-python-server-sdk
Installation
SKILL.md
Fishjam Python Server SDK
fishjam-server-sdk on PyPI; import fishjam. Server-side Python SDK for Fishjam.
Read
../platform/SKILL.mdfirst. It defines rooms, peers, tracks, the two-tier token model, and the WS-vs-webhook tradeoff that the Python SDK is built on.
Sync REST + async events
The architecture differs from the JS SDK in one important way:
FishjamClientis synchronous. Methods likecreate_room,create_peer,delete_peerare plaindef, notasync def. Call them from sync routes or viarun_in_executorfrom async contexts.FishjamNotifieris async (asyncio+websockets). Use@notifier.on_server_notificationandawait notifier.connect().Agentis async (async context manager —async with agent.connect() as session: ...).receive_binary(raw_bytes)is sync — call it directly inside an async route handler or a sync one.