A fork of Hypercorn that uses AnyIO
Project description
Anycorn
Anycorn is a fork of Hypercorn where asyncio
and
Trio compatibility is delegated to AnyIO, instead of having a
separate code base for each. Anycorn forked from version 0.16.0 of Hypercorn.
Quickstart
Anycorn can be installed via pip:
pip install anycorn
and requires Python 3.8 or higher.
With Anycorn, installed ASGI frameworks (or apps) can be served via the command line:
anycorn module:app
Alternatively, Anycorn can be used programatically:
import anyio
from anycorn.config import Config
from anycorn import serve
from module import app
anyio.run(serve, app, Config())
See Hypercorn's documentation for more details.
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
anycorn-0.17.3.tar.gz
(68.9 kB
view details)
Built Distribution
anycorn-0.17.3-py3-none-any.whl
(50.0 kB
view details)
File details
Details for the file anycorn-0.17.3.tar.gz
.
File metadata
- Download URL: anycorn-0.17.3.tar.gz
- Upload date:
- Size: 68.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 738056b8e2d4c773c171eeadd993e8f3d71d990c97d877cbbf7f7a689cd4e686 |
|
MD5 | cd19a5fed99e919e726ca962a5eec9ea |
|
BLAKE2b-256 | 5a1dbbb54e2f90cf0528e7b85ee36bd09ca970280283e7303679ad00d7563301 |
File details
Details for the file anycorn-0.17.3-py3-none-any.whl
.
File metadata
- Download URL: anycorn-0.17.3-py3-none-any.whl
- Upload date:
- Size: 50.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e468d841d3c163c8b013f6083219c95e7fc492155d4f8bb45995b15c17643d77 |
|
MD5 | 518b2e47190ab44fdee5e3902a0c387c |
|
BLAKE2b-256 | ba5c59b5408e328f5c1f3121c71310230152f5117effd7ef98cd4328055a7a27 |