asyncore-wsgi
Asynchronous WSGI and WebSocket server based on asyncore module
What it is and what it does
asyncore-wsgi is a lightweight WSGI server that runs a single-threaded event loop using Python's asyncore module to handle HTTP requests and WebSocket connections. It lets you serve standard WSGI applications alongside custom WebSocket handlers by subclassing AsyncWebSocketHandler and implementing message and lifecycle callbacks. The server binds to a host and port, serves your WSGI app on the root path, and routes WebSocket upgrades to a handler class you provide.
The package has no runtime dependencies and installs as a pure Python wheel. However, it is built on asyncore, which is deprecated and scheduled for removal from Python's standard library. The project itself has been abandoned since 2023-07-06 with no recent commits or maintenance activity, making it unsuitable for new development or production use in modern Python environments.
Use it for:
- Prototyping a simple WebSocket echo server or chat application with minimal dependencies during development or learning.
- Serving a legacy WSGI application that needs WebSocket support in an environment where modern alternatives are not available.
- Educational projects exploring how asynchronous I/O and WebSocket protocols work at a low level using Python's standard library.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A single-threaded asynchronous WSGI server with WebSocket support built on Python's asyncore module, serving WSGI applications and handling WebSocket connections on a specified path.
No. The project is abandoned and built on a deprecated standard library module (asyncore). While it has no known vulnerabilities and low install friction, asyncore is scheduled for removal from Python and the package receives no maintenance. Use a modern alternative instead.
Install
asyncore-wsgi on PyPI
pip
pip install asyncore-wsgiuv
uv add asyncore-wsgipoetry
poetry add asyncore-wsgiInstalling asyncore-wsgi
Before you install
Low friction to install, but the project is abandoned as of 2023-07-06 with no active maintenance. The asyncore module itself is deprecated in modern Python, so this package is not suitable for new projects or long-term use.
License in practice
MIT license is permissive and places no restrictions on use, modification, or distribution for commercial or private purposes.
Quickstart
from wsgiref.simple_server import demo_app
from asyncore_wsgi import AsyncWebSocketHandler, make_server
class SimpleEchoHandler(AsyncWebSocketHandler):
def handleMessage(self):
self.sendMessage(self.data)
httpd = make_server('', 8000, demo_app, ws_handler_class=SimpleEchoHandler)
httpd.serve_forever()
Requires Python 3.6 or later; asyncore module is deprecated and scheduled for removal from Python's standard library.
Verify before relying
- Whether asyncore deprecation in Python 3.10+ affects runtime stability or if the package still functions despite the underlying module being scheduled for removal.
- Real-world performance characteristics and concurrency limits of the single-threaded event loop.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 1,136 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 76,357/month — #14,631 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: asyncore_wsgi-0.0.11-py3-none-any.whl
Keywords: wsgi, web, server
Tags
More WWW/HTTP 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
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
uvicornUvicorn is an ASGI web server that runs async…
permissive · top 100 on PyPI
aiohttp-wsgiRuns WSGI applications like Django and Flask on…
permissive · top 15,000 on PyPI
websocketswebsockets is a library for building WebSocket…
permissive · top 100 on PyPI
static3Serves static and templated content over WSGI,…
copyleft · top 15,000 on PyPI
asgirefProvides ASGI base libraries including…
permissive · top 1,000 on PyPI
tornadoTornado is a Python web framework and…
permissive · top 1,000 on PyPI
HypercornHypercorn is an ASGI and WSGI web server…
permissive · top 5,000 on PyPI
gevent-websocketProvides WebSocket support for gevent-based…
unclear · top 5,000 on PyPI
FlaskFlask is a lightweight WSGI web application…
permissive · top 1,000 on PyPI