Skip to main content

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

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for asyncore-wsgi 0.0.6
File Size Uploaded Provenance Actions
asyncore-wsgi-0.0.6.tar.gz 9.1 kB Without provenance Details for asyncore-wsgi-0.0.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for asyncore-wsgi 0.0.6
File Interpreter ABI Platform Actions
asyncore_wsgi-0.0.6-py2.py3-none-any.whl Python 3, Python 2 none any Details for asyncore_wsgi-0.0.6-py2.py3-none-any.whl

Total release size: 19.0 kB

Release files / asyncore-wsgi-0.0.6.tar.gz

Download URL asyncore-wsgi-0.0.6.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9eaed376cddc24d225eebb09850710bbee1d260f05f4512688a685a2e12f2705
BLAKE2b-256 checksum
How to use checksums
c1a1e459bd71ca46904b27391240d403f072cd45093e7608551a1f42cf5cd6b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Release files / asyncore_wsgi-0.0.6-py2.py3-none-any.whl

Download URL asyncore_wsgi-0.0.6-py2.py3-none-any.whl
Size 9.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
16eeb092261b268302dd908193a4aa9a81d8b4855cad92f8dc94c32236166fcd
BLAKE2b-256 checksum
How to use checksums
5a8ba0b3f57bb7fcdee11542485134e119d962cee9a970664476034150075e8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.6

Security for asyncore-wsgi 0.0.6

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page