skillfed

asyncore-wsgi

Asynchronous WSGI and WebSocket server based on asyncore module

asyncore-wsgi v0.0.11 76.4K downloads/30d#14,631 on PyPI2
Permissive license MIT Abandoned released

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-wsgi

uv

uv add asyncore-wsgi

poetry

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 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

Development Status :: 4 - BetaEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: WSGI :: Server

Tags

asyncore wsgi serverwebsocket server pythonasynchronous wsgisimple websocket handlerlightweight web serverasyncore based server
deprecatedabandoned

More WWW/HTTP packages