Registry / web-framework / wsgiserver

wsgiserver

JSON →
library1.3pypypi✓ verified 86d ago

A high-speed, production ready, thread pooled, generic WSGI server with SSL support. Version 1.3 is the latest release. The project appears to be in maintenance mode with no recent updates.

pip install wsgiserver
INSTALL
IMPORT
SIG · WSGISERVER
W
wsgiserver
web-frameworkpythonv1.3
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 wsgiserver import WSGIServer

Create a minimal WSGI server to serve a simple application.

from wsgiserver import WSGIServer def my_app(environ, start_response): start_response('200 OK', [('Content-Type', 'text/plain')]) return [b'Hello, World!'] server = WSGIServer(my_app, host='0.0.0.0', port=8080) server.start()
Debug
Known issues
gotchaThe package name on PyPI is 'wsgiserver' but the import uses 'wsgiserver' as well, so no confusion. However, the project is not actively maintained; consider using gunicorn or uWSGI for new projects.
fix
Use a more modern WSGI server like gunicorn or uWSGI.
affects: all
deprecatedThis library uses Python 2 style threading and may not be fully compatible with Python 3. Version 1.3 was released for Python 2.7.
fix
Ensure you are running on Python 2.7 or test thoroughly on Python 3.
affects: >=1.3
Errors
Common errors & fixes
ImportError: No module named wsgiserver
The package is not installed or the environment does not have it.
fix
Run 'pip install wsgiserver' to install the library.
TypeError: 'int' object is not iterable
The application's return value is not a list of bytes; older WSGI spec requires iterable.
fix
Ensure your WSGI app returns a list of bytes, e.g., return [b'Hello'].
Upgrade
Version history
1.3latest on PyPI · released Sep 29, 2016
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
23
OpenAI (training)
1
Resources
wsgiserver — pip install wsgiserver · libregistry