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.3.tar.gz (10.1 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.3-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: a2wsgi-0.3.3.tar.gz
  • Upload date:
  • Size: 10.1 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.3.tar.gz
Algorithm Hash digest
SHA256 1f987f25f9ff9880fcb1920ef42904439915685792025b1c190e066d97ee2add
MD5 71e20bcd8e1f52020225eefed60d55b0
BLAKE2b-256 fa9020987789e99912b8637ba973ae8bf62d97d3ff4659ca7f9a7c2c5b0a5900

See more details on using hashes here.

File details

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

File metadata

  • Download URL: a2wsgi-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 11.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 97105ec9ebf510086e19ef68ca795f41ad5a2a7d1fb852ed903f90062473d732
MD5 4d01f9045c856d39cc9b60c30581d93d
BLAKE2b-256 052372291bbba2bf0f7fa1dff083b63e65696e6415b69cf2d5e8a2c16caefcaa

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