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.0.tar.gz
(67.0 kB
view details)
Built Distribution
anycorn-0.17.0-py3-none-any.whl
(48.6 kB
view details)
File details
Details for the file anycorn-0.17.0.tar.gz
.
File metadata
- Download URL: anycorn-0.17.0.tar.gz
- Upload date:
- Size: 67.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a101fb69a22fd06687057770a0258fb846a9ca9a8b769380973f2a2a51b21915 |
|
MD5 | b41a4e4bce8a7dc82f433933a6ba42da |
|
BLAKE2b-256 | 88332946844bc70fd5c27bc7b4a5d99a09ddd83fd1053033b56ddddcbe53b399 |
File details
Details for the file anycorn-0.17.0-py3-none-any.whl
.
File metadata
- Download URL: anycorn-0.17.0-py3-none-any.whl
- Upload date:
- Size: 48.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3fe0ea094b76f8c837a9565591ce8a11e1b4cb513a2d4afe00974537c603643 |
|
MD5 | f5cf0dd9f84358e38e5ee9ae954a91ed |
|
BLAKE2b-256 | dcd954263b0230e8d3536c0fa0986c7cde733b99f85f26cffe779c9fef1f5977 |