Releases: centrifugal/pycent
Releases · centrifugal/pycent
v5.0.0
Cent v5 is a complete rewrite of cent
library with the following notable improvements:
- Adding asynchronous client on top of asyncio/aiohttp
- Use Pydantic models for request/result DTO
- Support latest Centrifugo APIs (including Centrifugo PRO API methods)
The example of usage is now:
from cent import Client, PublishRequest
client = Client("http://localhost:8000/api", "<CENTRIFUGO_API_KEY>")
request = PublishRequest(channel="channel", data={"input": "Hello world!"})
client.publish(request)
Check out readme for more details. Take a closer look at Migrate to Cent v5 notes.
Many thanks to Katant Savelev and Bogdan Evstratenko for contributions and making this release happen.