Skip to content

Releases: centrifugal/pycent

v5.0.0

16 Mar 09:36
53c8945
Compare
Choose a tag to compare

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.

v4.1.0

13 Dec 13:29
a974c39
Compare
Choose a tag to compare
  • Fix offset field in history result which previously contained publications, #24.

v4.0.1

12 Sep 07:28
9c1fee7
Compare
Choose a tag to compare

New major release to work with Centrifugo v3

  • Client does not add /api suffix automatically, developers now need to provide full Centrifugo HTTP API endpoint address explicitly
  • Drop Python 2 support

v3.0.1

18 Jul 10:56
Compare
Choose a tag to compare
v3.0.1