pubnub
PubNub Real-time push service in the cloud
Decision gist · record as of 2026-08-14
Yes, if you need a managed real-time messaging service and accept the proprietary license. The SDK is production-stable, actively maintained, has no known vulnerabilities, and supports modern Python versions. The high install friction (six dependencies) is typical for a full-featured messaging client. Verify the license terms for your use case before committing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later; publish and subscribe keys must be obtained from the PubNub Admin Portal.
- High install friction due to six runtime dependencies including pycryptodomex, httpx, h2, requests, aiohttp, and cbor2.
- Active maintenance with a release 37 days ago and recent commits indicate ongoing support.
License · maintenance · safety
(unclear) — License treatment is unclear—the package uses a proprietary 'PubNub Software Development Kit License' with no SPDX identifier. Review the license terms directly before adopting in commercial or open-source projects.
last release 2026-07-08 (37 days) · last repo commit 2026-07-08 · 167 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 244,128 downloads/mo, #8,762 on PyPI
Alternatives
Verify before relying
pip install pubnub
from pubnub.pnconfiguration import PNConfiguration
from pubnub.pubnub import PubNub
pnconfig = PNConfiguration()
pnconfig.subscribe_key = 'mySubscribeKey'
pnconfig.publish_key = 'myPublishKey'
pnconfig.uuid = 'myUniqueUUID'
pubnub = PubNub(pnconfig)
pubnub.publish().channel('my_channel').message('Hello world!').pn_async(callback)- Whether the proprietary license permits use in commercial applications without additional agreements.
- Performance characteristics and latency guarantees under typical production loads.
- Whether all six runtime dependencies are always required or if some are optional for specific use cases.
What it is and what it does
PubNub is a cloud-hosted real-time messaging platform with an official Python SDK that handles the infrastructure for sending and receiving messages globally. The SDK manages publish-subscribe channels, presence detection, signal delivery, and event callbacks through a configuration-based setup and listener pattern.
The package wraps PubNub's REST API and WebSocket infrastructure, abstracting away network complexity so developers can focus on application logic. It supports asynchronous operations via callbacks, integrates with multiple HTTP backends (requests, httpx, aiohttp), and includes cryptographic message signing through pycryptodomex. The SDK is actively maintained, supports Python 3.9 through 3.13, and carries no known security vulnerabilities.
Use it for
- Build real-time chat or messaging applications where messages must arrive globally in under 100ms.
- Implement presence tracking to show which users are currently online or active in your application.
- Send event notifications and signals across distributed services without managing your own message broker.
- Create collaborative applications where multiple clients need to synchronize state changes instantly.
- Monitor and react to status events such as connection failures, authentication issues, or network changes.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need a managed real-time messaging service and accept the proprietary license.
The SDK is production-stable, actively maintained, has no known vulnerabilities, and supports modern Python versions. The high install friction (six dependencies) is typical for a full-featured messaging client. Verify the license terms for your use case before committing.
Install
pubnub on PyPI
Before you install
High install friction due to six runtime dependencies including pycryptodomex, httpx, h2, requests, aiohttp, and cbor2. Active maintenance with a release 37 days ago and recent commits indicate ongoing support.
Requires Python 3.9 or later; publish and subscribe keys must be obtained from the PubNub Admin Portal.
License in practice
License treatment is unclear—the package uses a proprietary 'PubNub Software Development Kit License' with no SPDX identifier. Review the license terms directly before adopting in commercial or open-source projects.
Quickstart
pip install pubnub
from pubnub.pnconfiguration import PNConfiguration
from pubnub.pubnub import PubNub
pnconfig = PNConfiguration()
pnconfig.subscribe_key = 'mySubscribeKey'
pnconfig.publish_key = 'myPublishKey'
pnconfig.uuid = 'myUniqueUUID'
pubnub = PubNub(pnconfig)
pubnub.publish().channel('my_channel').message('Hello world!').pn_async(callback)
Verify before relying
- Whether the proprietary license permits use in commercial applications without additional agreements.
- Performance characteristics and latency guarantees under typical production loads.
- Whether all six runtime dependencies are always required or if some are optional for specific use cases.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.9 |
| Install friction | High. Source build required |
| Runtime dependencies | 6 packagespycryptodomexhttpxh2requestsaiohttpcbor2 |
| Maintenance | Actively maintained 37 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 244,128 / month, #8,762 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/StableIntended Audience :: DevelopersLicense :: Other/Proprietary LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: Internet :: WWW/HTTPTopic :: Software Development :: Libraries :: Python Modules |
Evidence: pubnub-10.7.2.tar.gz
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 › “real-time messaging sdk”
- pubnubPubNub Python SDK provides real-time publish-subscribe messaging and…
- azure-communication-chatPython SDK for Azure Communication Services Chat, enabling creation…
- centrifuge-pythonWebSocket real-time client SDK for Centrifugo and Centrifuge-based…
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 ably · Pypubsub · slixmpp · solace-pubsubplus · broadcaster · neonize · firebase-messaging · google-cloud-pubsub · lcm · pusher