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.4.tar.gz (10.2 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.4-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: a2wsgi-0.3.4.tar.gz
  • Upload date:
  • Size: 10.2 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.4.tar.gz
Algorithm Hash digest
SHA256 30b54ca3341b13f7c15d3aaa626df63f982161e6d0aecc03b754e078f1f871db
MD5 7f7155d0f503c9495f012f659c008193
BLAKE2b-256 f5672853679a5d0783abf656a909ab32c48e86c3032ceb368f6bff5865980ffb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: a2wsgi-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 11.1 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 71f17ebb35df59cb054ef3671dbd855cbc41e83aee550fd347a4f1a78ec20673
MD5 f7731614f08c903375060af827a73b30
BLAKE2b-256 1a9f9bfb72504f6e689a6d252aa245aa668472de407468a1113596f14b45975e

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