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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for a2wsgi-1.3.1.tar.gz
Algorithm Hash digest
SHA256 cdcaaf1af61d7896a4523d9101d335b94b0454c0062bc0c6d2a30a12ac11918d
MD5 eab29dee01fa321264b51cfa6979da0a
BLAKE2b-256 fabbb36e8531d6ff81a7c6934b89a3fa85fa307e999d36b92feeb1b517cbabff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: a2wsgi-1.3.1-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.9 Linux/5.4.0-1031-azure

File hashes

Hashes for a2wsgi-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea0375ad3d7703fe395ff5474de77307f6cfedf971c82394b844ff5e443addeb
MD5 e7b37ed2829f83d4433f20ae443ac7d8
BLAKE2b-256 ec7efd3e675a2c0e3d1c65b52ff1323bf5eed5c636ea102ec884340dc185ddad

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