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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aioscgi-2.3.0.tar.gz
.
File metadata
- Download URL: aioscgi-2.3.0.tar.gz
- Upload date:
- Size: 35.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf2aabea7ed1bee043811ab801720496194bcfc4480522696723ce3e88d08c5d |
|
MD5 | 8c40bc58740935dee60d0e3521aa65c6 |
|
BLAKE2b-256 | 6f880df385a990c9b2b60dbd1bf21e5fc11332c85cb70c5c05aba0b9ebf166d6 |
File details
Details for the file aioscgi-2.3.0-py3-none-any.whl
.
File metadata
- Download URL: aioscgi-2.3.0-py3-none-any.whl
- Upload date:
- Size: 31.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0002da2239f638c127a7badaeec45299e11dc740d27602b8524568f7cc9c3df5 |
|
MD5 | a294d7585eae5c512c2f46729598ddce |
|
BLAKE2b-256 | 1248466bdc56bb238dc8b1577a1aa527b0bca3455e5e747aeac030a3f26fdafd |