Skip to main content

Convert WSGI app to ASGI app or ASGI app to WSGI app.

Project description

a2wsgi

Convert WSGI app to ASGI app or ASGI app to WSGI app.

Pure Python. No dependencies. High performance.

Install

pip install a2wsgi

How to use

Convert WSGI app to ASGI app:

from a2wsgi import WSGIMiddleware

ASGI_APP = WSGIMiddleware(WSGI_APP)

Convert ASGI app to WSGI app:

from a2wsgi import ASGIMiddleware

WSGI_APP = ASGIMiddleware(ASGI_APP)

Benchmark

Run python benchmark.py to compare the performance of a2wsgi and uvicorn.middleware.wsgi.WSGIMiddleware / asgiref.wsgi.WsgiToAsgi.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

a2wsgi-0.3.2.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

a2wsgi-0.3.2-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file a2wsgi-0.3.2.tar.gz.

File metadata

  • Download URL: a2wsgi-0.3.2.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.3 CPython/3.7.4 Windows/10

File hashes

Hashes for a2wsgi-0.3.2.tar.gz
Algorithm Hash digest
SHA256 bef9e465be73453168c910da426c38d8474bd2f8413345ad62d35458bd052350
MD5 c276644f8d5adad3ed2b36d9cf14ab0a
BLAKE2b-256 5b1eee02f89552f2caace613b1b92b805c572bbf9cddfc0c8358a1532a5035ff

See more details on using hashes here.

File details

Details for the file a2wsgi-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: a2wsgi-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.3 CPython/3.7.4 Windows/10

File hashes

Hashes for a2wsgi-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3c371348a2eacc9a3b4d547afd17f90f49c20c78ef04eda090b15c114097c421
MD5 92629735cee76cc7d2ad5ef8e9b74d47
BLAKE2b-256 8415a96dad1ff8ce200b959b248e8c1354b94813501f7b66abf2aa96443916d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page