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.18.0.tar.gz
(68.8 kB
view hashes)
Built Distribution
anycorn-0.18.0-py3-none-any.whl
(49.9 kB
view hashes)