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.1.0.tar.gz (28.6 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.1.0-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioscgi-2.1.0.tar.gz
  • Upload date:
  • Size: 28.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for aioscgi-2.1.0.tar.gz
Algorithm Hash digest
SHA256 dee1f2cbadd8ab80c9ce00d1e8ba2c1f6c4d47bce0e16f88bb9b3e3d0f4b74d2
MD5 f879bd3446c4e554ef6724fc3806b856
BLAKE2b-256 18c996cbc31f6adf26070dd3aa4030a6c561ba78e2b0c1b31a428c530fcfc23f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aioscgi-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for aioscgi-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3132f469e6616d1920313cdb99259d24b564a3cb113b56f1ba48725965762cc
MD5 84d49d1b49aae0d95895607c49bfea37
BLAKE2b-256 3a02b848b361104ad0daaeab5289d513a6bc24813edefd99b59edbb119896944

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