Skip to main content

An ASGI server that speaks SCGI.

Project description

What is aioscgi?

aioscgi is a container implementing the Asynchronous Server Gateway Interface (ASGI) to serve up asynchronous Web applications via the Simple Common Gateway Interface protocol.

What is SCGI?

SCGI is a protocol used for communication between HTTP servers and Web applications. Compared to CGI, SCGI is more efficient because it does not fork and execute a separate instance of the application for every request; instead, the application is launched ahead of time and receives multiple requests (either sequentially or concurrently) via socket connections. Compared to FastCGI, SCGI is a much simpler protocol as it uses a separate socket connection for each request, rather than including framing within a single connection to multiplex requests (a feature which is rarely used in FastCGI anyway due to the lack of per-request flow control).

See the Wikipedia and Python SCGI pages for more information.

How do I install it?

aioscgi’s releases are published on PyPI for installation through pip. You can run pip install aioscgi.

For development, the source is available at GitLab and GitHub.

How do I use it?

aioscgi installs an aioscgi executable. If your ASGI application callable is named myapp and is in a file called mypackage/mymodule.py, you might run aioscgi --unix-socket /path/to/socket mypackage.mymodule:myapp. For full details on available options, run aioscgi --help.

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

aioscgi-2.3.1.tar.gz (35.9 kB view details)

Uploaded Source

Built Distribution

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

aioscgi-2.3.1-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file aioscgi-2.3.1.tar.gz.

File metadata

  • Download URL: aioscgi-2.3.1.tar.gz
  • Upload date:
  • Size: 35.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for aioscgi-2.3.1.tar.gz
Algorithm Hash digest
SHA256 40622bde6d194d41e55b96d271e591ff10c234fe2485212f3ebb4b730066aab2
MD5 d833b2543ceb8ed867cd4167ad144018
BLAKE2b-256 290b28f518db6483cd8c556e2358b0beb585fb4f65d01bfccbe9833840119b20

See more details on using hashes here.

File details

Details for the file aioscgi-2.3.1-py3-none-any.whl.

File metadata

  • Download URL: aioscgi-2.3.1-py3-none-any.whl
  • Upload date:
  • Size: 32.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for aioscgi-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0cb1aaeacff9a19211b2a27275fcafbdc1afe8f0c164e70e83e7cfb614d069b7
MD5 81bc4c802361bcab2483bf2810da8733
BLAKE2b-256 966fd3cf134b81335c62b98b947094a3e8ea64c5266ab854c2dd34280d56efd7

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