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. This fork supports tls extension.

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.2.tar.gz (72.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

anycorn-0.18.2-py3-none-any.whl (53.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: anycorn-0.18.2.tar.gz
  • Upload date:
  • Size: 72.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for anycorn-0.18.2.tar.gz
Algorithm Hash digest
SHA256 9bf2e2b4f673ee8bf8cf5d15a624ac6c62906c4dcf958ac521724bcea5298dab
MD5 5c2908f4670e049e4dfca38e53f29bab
BLAKE2b-256 65c5753ab6f955ccf7bb51c7e9956149f87d5bc23aa89fe65e53f279ecd91f37

See more details on using hashes here.

File details

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

File metadata

  • Download URL: anycorn-0.18.2-py3-none-any.whl
  • Upload date:
  • Size: 53.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for anycorn-0.18.2-py3-none-any.whl
Algorithm Hash digest
SHA256 070d64737f2c0be9f4564ef750409180eff36ba9e041d075400d3db18bfcdaeb
MD5 f0fd98cdd6be54b9d1d52006f70cc74c
BLAKE2b-256 cf6076bdca2f685a0c6d4c2724b7c8650f1771debf5d1c38996d5ade573d1ce6

See more details on using hashes here.

Supported by

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