Nothing Special   »   [go: up one dir, main page]

Skip to content

v5.0.0

Latest
Compare
Choose a tag to compare
@FZambia FZambia released this 16 Mar 09:36
· 12 commits to master since this release
53c8945

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.