asyncore-wsgi
This is a single-threaded asynchronous WSGI server with WebSockets support based on asyncore module. It should be compatible with Python 2.7 and 3.
Example:
from from wsgiref.simple_server import demo_app
from asyncore_wsgi import AsyncWebSocketHandler, make_server
class SimpleEchoHandler(AsyncWebSocketHandler):
def handleMessage(self):
print('Received WebSocket message: {}'.format(self.data))
self.sendMessage(self.data)
def handleConnected(self):
print('WebSocket connected')
def handleClose(self):
print('WebSocket closed')
httpd = make_server('', 8000, demo_app, ws_handler_class=SimpleEchoHandler)
httpd.serve_forever()
The server in the preceding example serves a demo WSGI app from the Standard Library and the echo WebSocket handler on '/ws' path.
WebSocket part was borrowed from this project.
License
MIT, see LICENSE.txt
Metadata
Release files for asyncore-wsgi 0.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| asyncore-wsgi-0.0.11.tar.gz | 15.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| asyncore_wsgi-0.0.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.7 kB
Release files / asyncore-wsgi-0.0.11.tar.gz
| Download URL | asyncore-wsgi-0.0.11.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5a8f999715ac4222c7a3d4cfa427535ac2dc9adf7e18d1c7e511924864133e16
|
|
BLAKE2b-256 checksum How to use checksums |
baeee89c43a89ca46fb71875a9ecc854e52d8767696489bce2cf7beade376c07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|
Release files / asyncore_wsgi-0.0.11-py3-none-any.whl
| Download URL | asyncore_wsgi-0.0.11-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
16cc499992d23adf3ad27f5e9a226c3212e78490aab6ea92d9167f2f1acbd6f1
|
|
BLAKE2b-256 checksum How to use checksums |
8283ac56a2f11d43a20d78eddd0bf77138dd2a14279151ee3da6c84677ed9e0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|
Security for asyncore-wsgi 0.0.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.