Pysher
Pusher websocket client for python, based on Erik Kulyk's PythonPusherClient
What it is and what it does
Pysher is a WebSocket client for the Pusher real-time messaging service. It lets you subscribe to Pusher channels from Python and bind event handlers to react to incoming messages in real time. The library manages the WebSocket connection, handles reconnection, and automatically resubscribes to channels after disconnects.
The package is a fork of an earlier PythonPusherClient, updated to drop support for Python versions before 3.5. It is currently in maintenance mode—the original author no longer actively develops it, but the repository accepts pull requests for fixes and features. High install friction and abandonment status mean you should verify compatibility with your environment before adopting it.
Use it for:
- Build a real-time chat or notification system that receives messages pushed from a Pusher backend.
- Monitor live events or status updates from a server without polling.
- Subscribe to multiple channels and react to different event types with custom handlers.
- Integrate Pusher real-time capabilities into a Python application or service.
- Consume WebSocket events in a background worker or daemon process.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Pysher is a Python client library for consuming Pusher WebSocket events, allowing you to subscribe to channels and bind event handlers to receive real-time messages.
Yes, if you are already committed to Pusher as your real-time messaging platform and need a Python WebSocket consumer. The MIT license is permissive, and there are no known vulnerabilities. However, proceed with caution: the package is abandoned, install friction is high, and compatibility with modern Python versions is unverified. Test thoroughly in your environment and consider whether an actively maintained alternative exists before committing to production use.
Install
pysher on PyPI
pip
pip install pysheruv
uv add pysherpoetry
poetry add pysherInstalling Pysher
Before you install
Installation requires websocket-client as a dependency. The package is in maintenance mode with no active development since August 2023, though the repository remains public and accepts PRs. High install friction suggests potential setup complexity.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions—you need only include a copy of the license in distributions.
Quickstart
pip install pysher
import pysher
pusher = pysher.Pusher(appkey='your-app-key')
channel = pusher.subscribe('mychannel')
channel.bind('myevent', lambda data: print(data))
pusher.connect()
Requires websocket-client module; connection requires a valid Pusher app key and network access to Pusher servers.
Verify before relying
- Whether websocket-client dependency is automatically installed or must be manually added.
- Current compatibility with Python versions beyond 3.7 (classifiers list 3.5–3.7).
- Whether wsaccel optimization for UTF-8 validation is still relevant or recommended.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 1,404 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,267,450/month — #4,138 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: Pysher-1.0.8.tar.gz
Keywords: pusher, websocket, client
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
pusherPusher is a Python client library for the…
permissive · top 5,000 on PyPI
simple-websocketProvides a straightforward WebSocket server and…
permissive · top 1,000 on PyPI
websocket-clientwebsocket-client provides a Python WebSocket…
permissive · top 1,000 on PyPI
wslinkwslink provides bi-directional websocket…
permissive · top 5,000 on PyPI
pubnubPubNub Python SDK provides real-time…
unclear · top 15,000 on PyPI
amqpPure-Python AMQP 0.9.1 client library for…
permissive · top 1,000 on PyPI
websockets-proxyEnables WebSocket connections through HTTP and…
permissive · top 15,000 on PyPI
websocketswebsockets is a library for building WebSocket…
permissive · top 100 on PyPI
flask-sockAdds WebSocket support to Flask applications…
permissive · top 5,000 on PyPI