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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file anycorn-0.18.0.tar.gz.

File metadata

  • Download URL: anycorn-0.18.0.tar.gz
  • Upload date:
  • Size: 68.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for anycorn-0.18.0.tar.gz
Algorithm Hash digest
SHA256 edb443aa46d5c396d4c53cb5f1e425b88e63d8a4fb9af2b835640a7b3351857f
MD5 80bb5e4c0f4cbc9cd742139a3713a1c0
BLAKE2b-256 6832e64b21594b20cdc80a9de5a6c71e866fdae682a0e7596224dcf4f034b98a

See more details on using hashes here.

File details

Details for the file anycorn-0.18.0-py3-none-any.whl.

File metadata

  • Download URL: anycorn-0.18.0-py3-none-any.whl
  • Upload date:
  • Size: 49.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for anycorn-0.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5cb8b119d7b80ce7313e6295aa785cc3c9aefe48ec50861ac5d0c712ab36dbe
MD5 d9fec48d4af60370701950f26a519f6d
BLAKE2b-256 d60885b383772f7490a9dce99ec4bd582447d18306042fdddde9e93eee22cd1a

See more details on using hashes here.

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