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. Only depend on the standard library.

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 pytest ./benchmark.py -s to compare the performance of a2wsgi and uvicorn.middleware.wsgi.WSGIMiddleware / asgiref.wsgi.WsgiToAsgi.

Why a2wsgi

Convert WSGI app to ASGI app

You can convert an existing WSGI project to an ASGI project to make it easier to migrate from WSGI applications to ASGI applications.

Convert ASGI app to WSGI app

There is a lot of support for WSGI. Converting ASGI to WSGI, you will be able to use many existing services to deploy ASGI applications.

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-1.4.0.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-1.4.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: a2wsgi-1.4.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.10 Linux/5.4.0-1039-azure

File hashes

Hashes for a2wsgi-1.4.0.tar.gz
Algorithm Hash digest
SHA256 33c020d50f0962bd6b8ef41435e421054c36fd843e4335e3dce9e0ecea9b39e2
MD5 1858f834fd9db502f64dbf3bc015817b
BLAKE2b-256 164e742080c4c33b5e5e304dd69be055633354a1aff79b39f38221b5d51ff9fe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: a2wsgi-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.10 Linux/5.4.0-1039-azure

File hashes

Hashes for a2wsgi-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6643f77b838372ca14c0d34654ede4fbc8fcfe30acf2085400f5a800a16cf445
MD5 864a169df44f4eb04e73ba8fb8ff2596
BLAKE2b-256 9b88d7d4e3ecc8a004b20ff623637e9e7d8f25473c5a7335e7c1d1159d9d3431

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