cent
Python library to communicate with Centrifugo server HTTP API
Decision gist · record as of 2026-08-14
Yes, if you are building a Python application that needs to communicate with a Centrifugo v5 or v6 server. The package is production-stable, has low install friction, carries no known vulnerabilities, and supports modern Python versions. The aging maintenance status (251 days since release) is a minor concern but not a blocker if your use case is stable. Verify that Centrifugo is the right real-time messaging backbone for your architecture before committing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a running Centrifugo server instance and a valid API key; Python >= 3.9 required.
- Low install friction with a pure-wheel distribution.
- Maintenance status is aging (251 days since last release), though the package is marked Production/Stable and supports current Python versions through 3.14.
License · maintenance · safety
MIT (permissive) — Licensed under MIT, a permissive license with minimal restrictions on use, modification, and distribution.
last release 2025-12-06 (251 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 267,405 downloads/mo, #8,292 on PyPI
Alternatives
Verify before relying
pip install cent
from cent import Client, PublishRequest
client = Client("http://localhost:8000/api", "api_key")
request = PublishRequest(channel="channel", data={"input": "Hello world!"})
result = client.publish(request)- Whether the aging maintenance status (251 days) signals active maintenance or dormancy—no commit history provided.
- Performance characteristics of the async client under high concurrency loads.
- Whether Centrifugo PRO API extensions are fully documented or require external reference.
What it is and what it does
Cent is a Python SDK that wraps Centrifugo's HTTP API, allowing you to publish messages to channels, manage subscriptions, and perform batch or broadcast operations from your Python application. It provides both a synchronous `Client` and an asynchronous `AsyncClient`, both built on top of `requests` and `aiohttp` respectively, and uses Pydantic models to structure API requests and responses.
The library is designed to work with Centrifugo v5 and v6 servers. It handles the low-level HTTP communication, request serialization, and error handling through a hierarchy of exceptions (CentError, CentNetworkError, CentTransportError, CentTimeoutError, CentUnauthorizedError, CentDecodeError, CentApiResponseError). For bulk operations, it supports BatchRequest and BroadcastRequest to send multiple commands in a single network round-trip, which can be significantly faster than sequential individual publishes.
Use it for
- Publish real-time messages from a backend service to connected clients via Centrifugo channels.
- Broadcast the same message to thousands of channels in a single efficient request using BroadcastRequest.
- Build async event handlers that construct Centrifugo async consumer events using request objects.
- Integrate Centrifugo into a Python web application for server-side push notifications and presence tracking.
- Batch multiple publish or API operations to reduce network latency and improve throughput.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are building a Python application that needs to communicate with a Centrifugo v5 or v6 server.
The package is production-stable, has low install friction, carries no known vulnerabilities, and supports modern Python versions. The aging maintenance status (251 days since release) is a minor concern but not a blocker if your use case is stable. Verify that Centrifugo is the right real-time messaging backbone for your architecture before committing.
Install
cent on PyPI
Before you install
Low install friction with a pure-wheel distribution. Maintenance status is aging (251 days since last release), though the package is marked Production/Stable and supports current Python versions through 3.14.
Requires a running Centrifugo server instance and a valid API key; Python >= 3.9 required.
License in practice
Licensed under MIT, a permissive license with minimal restrictions on use, modification, and distribution.
Quickstart
pip install cent
from cent import Client, PublishRequest
client = Client("http://localhost:8000/api", "api_key")
request = PublishRequest(channel="channel", data={"input": "Hello world!"})
result = client.publish(request)
Verify before relying
- Whether the aging maintenance status (251 days) signals active maintenance or dormancy—no commit history provided.
- Performance characteristics of the async client under high concurrency loads.
- Whether Centrifugo PRO API extensions are fully documented or require external reference.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesaiohttppydanticrequeststypes-requests |
| Maintenance | Aging 251 days since the last release |
| First released | |
| Downloads | 267,405 / month, #8,292 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: System AdministratorsLicense :: OSI Approved :: Apache Software LicenseLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTPTopic :: Software DevelopmentTopic :: System :: NetworkingTopic :: TerminalsTopic :: Text ProcessingTopic :: Utilities |
Evidence: cent-5.2.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 › “centrifugo http api client”
- centPython SDK for communicating with Centrifugo v5 and v6 servers via…
- centrifuge-pythonWebSocket real-time client SDK for Centrifugo and Centrifuge-based…
- apiclientA lightweight framework for building HTTP API client libraries with…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also centrifuge-python · speechmatics-batch · scale-gp · realtime · speechmatics-rt · meilisearch-python-sdk · simple-rest-client · python-okx · mailjet-rest · vapi-server-sdk