Centrifuge-python

Latest version: v0.3.1

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

Scan your dependencies

Page 1 of 2

0.3.1

What's Changed

This release adds a [delta compression](https://centrifugal.dev/docs/server/delta_compression) support to the SDK. Many thanks to itismoej for making it happen.

After enabling delta compression on server side, client-side subscriptions may be created with `delta` option in this way:

python
client.new_subscription("channel", delta=DeltaType.FOSSIL)


* feat: Add delta compression support by itismoej in https://github.com/centrifugal/centrifuge-python/pull/20
* Fossil delta compression tweaks by FZambia in https://github.com/centrifugal/centrifuge-python/pull/21
* Handle WebSocketException on connect by FZambia in https://github.com/centrifugal/centrifuge-python/pull/22, fixes [#19](https://github.com/centrifugal/centrifuge-python/issues/19)
* Add Python 3.13 to CI and supported versions by FZambia in https://github.com/centrifugal/centrifuge-python/pull/25

New Contributors
* itismoej made their first contribution in https://github.com/centrifugal/centrifuge-python/pull/20

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

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. Check out [README](https://github.com/centrifugal/centrifuge-python?tab=readme-ov-file#centrifuge-python) and 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.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.