Registry / devops / asyncore-wsgi

asyncore-wsgi

JSON →
library0.0.11pypypi✓ verified 84d ago

An asynchronous WSGI and WebSocket server built on Python's asyncore module. Compatible with Python >=3.6, version 0.0.11. Release cadence is low, mainly maintenance updates.

pip install asyncore-wsgi
INSTALL
IMPORT
SIG · ASYNCORE-WSGI
A
asyncore-wsgi
devopspythonv0.0.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WSGIServer
from asyncore_wsgi import WSGIServer
import asyncore_wgsi
Typo: asyncore_wgsi instead of asyncore_wsgi

Minimal WSGI server serving 'Hello, World!'

from asyncore_wsgi import WSGIServer def app(environ, start_response): start_response('200 OK', [('Content-Type', 'text/plain')]) return [b'Hello, World!'] server = WSGIServer(host='localhost', port=8000, app=app) server.serve_forever()
Debug
Known issues
breakingPython 3.12+ removed asyncore completely; this library will not work on those versions.
fix
Use an alternative like asyncio-based servers (e.g., uvicorn, aiohttp) or upgrade to a maintained fork.
affects: >=3.12
gotchaThe import module is named asyncore_wsgi (underscore), not asyncore-wsgi (hyphen).
fix
Always use from asyncore_wsgi import ...
affects: all
gotchaThe library uses the deprecated asyncore module, which is considered obsolete. It may have poor performance and lack modern features like proper SSL/TLS support.
fix
Consider migrating to an asyncio-based server for production use.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'asyncore_wsgi'
Trying to import with hyphens or wrong name.
fix
pip install asyncore-wsgi; then from asyncore_wsgi import WSGIServer
AttributeError: module 'asyncore' has no attribute 'loop'
Using Python 3.12+ where asyncore is removed.
fix
Downgrade to Python <=3.11 or switch to a different server library.
Upgrade
Version history
0.0.11latest on PyPI · released Jul 5, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
asyncore-wsgi — pip install asyncore-wsgi · libregistry