Skip to main content

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)

Uploaded Source

Built Distribution

anycorn-0.18.0-py3-none-any.whl (49.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page