skillfed

Pysher

Pusher websocket client for python, based on Erik Kulyk's PythonPusherClient

pysher v1.0.8 1.3M downloads/30d#4,138 on PyPI65
Permissive license MIT Abandoned released

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 pysher

uv

uv add pysher

poetry

poetry add pysher

Installing 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

Development Status :: 4 - BetaEnvironment :: Web EnvironmentLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Topic :: InternetTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules

Tags

pusher websocket clientreal-time event subscriptionwebsocket event handlerpusher channel bindingpython websocket consumerpusher client libraryreal-time messaging python
websocket-clientreal-time-messagingpusher-integration

More Libraries packages