ws4py
WebSocket client and server library for Python 2 and 3 as well as PyPy
Decision gist · record as of 2026-08-14
Yes, if you need WebSocket support in Python. The package is stable (Production/Stable status), has no known vulnerabilities, installs with zero dependencies, and is actively maintained. Suitable for production use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Installation is straightforward with no runtime dependencies.
- The package is actively maintained with a recent release (2024-12-19) and an active repository.
License · maintenance · safety
BSD (permissive) — BSD license is permissive, allowing commercial and private use with minimal restrictions—suitable for most projects.
last release 2024-12-19 (603 days) · last repo commit 2026-03-30 · 1,127 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 434,528 downloads/mo, #6,687 on PyPI
Alternatives
Verify before relying
pip install ws4py
from ws4py.client.threadedclient import WebSocketClient
client = WebSocketClient('ws://example.com/echo')
client.connect()- Whether the package actively supports Python 3.12 and PyPy despite the 603-day gap since last commit
- Current state of CherryPy integration (listed in classifiers but integration details not in excerpt)
What it is and what it does
ws4py is a Python library that implements the WebSocket protocol as defined in RFC 6455, allowing applications to establish persistent, bidirectional communication channels between clients and servers. It supports both client and server implementations and works across Python 2.7 and modern Python 3 versions as well as PyPy.
The library is designed for scenarios where you need real-time, low-latency communication—such as live notifications, collaborative editing, or streaming data—without the overhead of repeated HTTP requests. It can be used as WSGI middleware or as a standalone server component.
Use it for
- Building real-time chat or messaging applications where messages must flow instantly between connected clients
- Streaming live data to multiple clients simultaneously without polling
- Implementing collaborative tools that require bidirectional updates between browser and server
- Creating WebSocket-based APIs for mobile or desktop clients that need persistent connections
- Adding live notifications or alerts to web applications
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need WebSocket support in Python.
The package is stable (Production/Stable status), has no known vulnerabilities, installs with zero dependencies, and is actively maintained. Suitable for production use.
Install
ws4py on PyPI
Before you install
Installation is straightforward with no runtime dependencies. The package is actively maintained with a recent release (2024-12-19) and an active repository.
License in practice
BSD license is permissive, allowing commercial and private use with minimal restrictions—suitable for most projects.
Quickstart
pip install ws4py
from ws4py.client.threadedclient import WebSocketClient
client = WebSocketClient('ws://example.com/echo')
client.connect()
Verify before relying
- Whether the package actively supports Python 3.12 and PyPy despite the 603-day gap since last commit
- Current state of CherryPy integration (listed in classifiers but integration details not in excerpt)
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 603 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 434,528 / month, #6,687 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/StableFramework :: CherryPyIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: CommunicationsTopic :: Internet :: WWW/HTTP :: WSGI :: MiddlewareTopic :: Internet :: WWW/HTTP :: WSGI :: ServerTopic :: Software Development :: Libraries :: Python Modules |
Evidence: ws4py-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 › “RFC 6455 websocket”
- ws4pyws4py implements the WebSocket protocol (RFC 6455) for Python,…
- websocketswebsockets is a library for building WebSocket servers and clients in…
- trio-websocketImplements WebSocket protocol (RFC 6455) for both client and server…
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 autobahn · trio-websocket · wslink · simple-websocket · websockets · wsproto · python-engineio · websocket · flask-sock · python-socketio