--- id: asyncore-wsgi version: "0.0.11" license: MIT license_treatment: permissive maintenance: abandoned --- # asyncore-wsgi — Asynchronous WSGI and WebSocket server based on asyncore module License: permissive · Maintenance: abandoned · Downloads: 76.4K/mo ## 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 above — 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 pip install asyncore-wsgi uv add asyncore-wsgi poetry add asyncore-wsgi ## Installing 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_current - Install friction: low - Maintenance: abandoned - Downloads: 76.4K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags asyncore wsgi server, websocket server python, asynchronous wsgi, simple websocket handler, lightweight web server, asyncore based server, deprecated, abandoned [View on SkillFed](https://skillfed.io/packages/asyncore-wsgi) · [View on PyPI](https://pypi.org/project/asyncore-wsgi/)