Centrifuge-python

Latest version: v0.3.0

Safety actively analyzes 623883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.3.0

The real-time Python SDK for [Centrifugo](https://github.com/centrifugal/centrifugo) and [Centrifuge](https://github.com/centrifugal/centrifuge) has been reborn! 🚀

Supports all the major features of client protocol. Don't forget that the best resource to start working with any real-time SDK in Centrifugal ecosystem is a [client SDK API spec](https://centrifugal.dev/docs/transports/client_api).

0.3.0b5

What's Changed

* Add tests for join/leave events by FZambia in https://github.com/centrifugal/centrifuge-python/pull/16
* Do not use insecure mode in tests, tests for server-side subs by FZambia in https://github.com/centrifugal/centrifuge-python/pull/17
* Refactor arguments of `get_token` for Client and Subscriptions - `get_token` for Client does not receive any arguments now (instead of `ClientTokenContext` previously), `get_token` for Subscription receives `channel:str` instead of `SubscriptionTokenContext`. `ClientTokenContext` and `SubscriptionTokenContext` objects removed.

**Full Changelog**: https://github.com/centrifugal/centrifuge-python/compare/0.3.0b4...0.3.0b5

0.3.0b4

What's Changed

* Rename ConnectionTokenContext to ClientTokenContext, add tests by FZambia in https://github.com/centrifugal/centrifuge-python/pull/15
* Fix setting state in _schedule_reconnect, [commit](https://github.com/centrifugal/centrifuge-python/commit/647903b8cd39dfe2b44966906972accda8dfcc9f)

**Full Changelog**: https://github.com/centrifugal/centrifuge-python/compare/0.3.0b3...0.3.0b4

0.3.0b3

What's Changed

* Support server-side subscriptions, support custom headers, [commit](https://github.com/centrifugal/centrifuge-python/commit/74a4c5775d73c470fd955edae821afc7b1e7157b)
* Support automatic recovery in https://github.com/centrifugal/centrifuge-python/pull/13
* Support publication tags, error handling tweaks, [commit](https://github.com/centrifugal/centrifuge-python/commit/a97e2bb327c765196c1c3f9ed60e0743de42f7fa)
* Add license, add badges in https://github.com/centrifugal/centrifuge-python/pull/14


**Full Changelog**: https://github.com/centrifugal/centrifuge-python/compare/0.3.0b2...0.3.0b3

0.3.0b2

0.3.0b2 uses Any type for annotating all payloads used in the protocol. Also, check out description of [JSON vs Protobuf](https://github.com/centrifugal/centrifuge-python?tab=readme-ov-file#json-vs-protobuf-protocols) Client behavior regarding payloads types.

0.3.0b1

This is a **BETA** release of `centrifuge-python` adapted for the latest Centrifugal stack. Not ready for production usage - and more changes will come. Many thanks to KatantDev for the help! Check out [example](https://github.com/centrifugal/centrifuge-python/blob/master/example.py) in repo to become familiar with API on this stage.

Regarding features - almost all major supported (even with possibility to choose between JSON or Protobuf protocol). Except automatic publication recovery on reconnect - which is to be added later.

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.