centrifuge-python
WebSocket SDK for Centrifugo (and any Centrifuge-based server) on top of Python asyncio library
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, carries a permissive MIT license, and fills a clear need for asyncio-based real-time communication with Centrifugo servers. No known vulnerabilities. Best suited for projects already using asyncio and needing WebSocket real-time features; ensure your team understands the callback execution model (non-blocking, exception-safe) before integrating.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- SOCKS proxy support requires optional python-socks package.
- Low install friction with only two runtime dependencies (protobuf and websockets).
License · maintenance · safety
MIT (permissive) — MIT license (permissive) means you can use this freely in commercial and private projects with minimal restrictions.
last release 2026-08-02 (12 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 194,977 downloads/mo, #9,822 on PyPI
Alternatives
Verify before relying
pip install centrifuge-python
from centrifuge import Client
client = Client("ws://localhost:8000/connection/websocket")- Whether the SDK implements all features from the Centrifugo client SDK feature matrix mentioned in the description.
- Performance characteristics under high message throughput or concurrent subscriptions.
- Reconnection behavior and backoff strategy details beyond what the description states.
What it is and what it does
centrifuge-python is an asyncio-based WebSocket client for connecting to Centrifugo real-time servers. It handles the low-level protocol details of establishing connections, subscribing to channels, publishing messages, and receiving real-time updates from the server. The SDK supports both JSON and Protobuf wire protocols, allowing you to choose between human-readable JSON payloads or more compact binary Protobuf encoding depending on your performance needs.
The library is designed for async Python applications and integrates directly with asyncio event loops. It provides callback-based event handling for connection state changes, subscription updates, and server messages. Configuration options cover TLS customization for secure connections, proxy support (including SOCKS proxies), and protocol selection. The fact sheet notes that callbacks must complete quickly and not raise exceptions, as they run within the SDK's connection read loop.
Use it for
- Build real-time dashboards or monitoring UIs that receive live updates from a Centrifugo server without polling.
- Implement multi-user collaborative applications where changes made by one user are instantly broadcast to others.
- Create chat or messaging systems with pub/sub channels for group conversations and notifications.
- Connect IoT or backend services to a Centrifugo hub for real-time event distribution across microservices.
- Develop live notification systems that push alerts to connected clients as events occur on the server.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, carries a permissive MIT license, and fills a clear need for asyncio-based real-time communication with Centrifugo servers. No known vulnerabilities. Best suited for projects already using asyncio and needing WebSocket real-time features; ensure your team understands the callback execution model (non-blocking, exception-safe) before integrating.
Install
centrifuge-python on PyPI
Before you install
Low install friction with only two runtime dependencies (protobuf and websockets). Actively maintained with a release 12 days ago. Supports Python 3.10 through 3.14.
Requires Python 3.10 or later. SOCKS proxy support requires optional python-socks package.
License in practice
MIT license (permissive) means you can use this freely in commercial and private projects with minimal restrictions.
Quickstart
pip install centrifuge-python
from centrifuge import Client
client = Client("ws://localhost:8000/connection/websocket")
Verify before relying
- Whether the SDK implements all features from the Centrifugo client SDK feature matrix mentioned in the description.
- Performance characteristics under high message throughput or concurrent subscriptions.
- Reconnection behavior and backoff strategy details beyond what the description states.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesprotobufwebsockets |
| Maintenance | Actively maintained 12 days since the last release |
| First released | |
| Downloads | 194,977 / month, #9,822 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaFramework :: AsyncIOIntended Audience :: DevelopersIntended Audience :: Information TechnologyLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: InternetTopic :: Software Development :: Libraries :: Python ModulesTopic :: System :: NetworkingTyping :: Typed |
Evidence: centrifuge_python-0.6.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “websocket real-time client”
- centrifuge-pythonWebSocket real-time client SDK for Centrifugo and Centrifuge-based…
- PysherPysher is a Python client library for consuming Pusher WebSocket…
- websocket-clientwebsocket-client provides a Python WebSocket client implementing the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also cent · websocket-client · surrealdb · signalrcore · python-socks · trio-websocket · simple-websocket · websocket · websockets-proxy · websockify