{"id":13546453,"url":"https://github.com/pgjones/hypercorn","last_synced_at":"2025-05-14T01:02:10.366Z","repository":{"id":38631191,"uuid":"135839606","full_name":"pgjones/hypercorn","owner":"pgjones","description":"Hypercorn is an ASGI and WSGI Server based on Hyper libraries and inspired by Gunicorn.","archived":false,"fork":false,"pushed_at":"2025-04-27T14:54:32.000Z","size":1010,"stargazers_count":1291,"open_issues_count":110,"forks_count":113,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-04-29T02:04:30.495Z","etag":null,"topics":["asgi","asyncio","http-server","http2","http3","python","wsgi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pgjones.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-02T17:47:42.000Z","updated_at":"2025-04-27T14:54:36.000Z","dependencies_parsed_at":"2024-01-01T14:53:12.811Z","dependency_job_id":"5a073dda-d1a3-435b-820b-bd916e1e6722","html_url":"https://github.com/pgjones/hypercorn","commit_stats":null,"previous_names":[],"tags_count":57,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgjones%2Fhypercorn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgjones%2Fhypercorn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgjones%2Fhypercorn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgjones%2Fhypercorn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgjones","download_url":"https://codeload.github.com/pgjones/hypercorn/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253672748,"owners_count":21945483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asgi","asyncio","http-server","http2","http3","python","wsgi"],"created_at":"2024-08-01T12:00:38.056Z","updated_at":"2025-05-14T01:02:10.312Z","avatar_url":"https://github.com/pgjones.png","language":"Python","readme":"Hypercorn\n=========\n\n.. image:: https://github.com/pgjones/hypercorn/raw/main/artwork/logo.png\n   :alt: Hypercorn logo\n\n|Build Status| |docs| |pypi| |http| |python| |license|\n\nHypercorn is an `ASGI\n\u003chttps://github.com/django/asgiref/blob/main/specs/asgi.rst\u003e`_ and\nWSGI web server based on the sans-io hyper, `h11\n\u003chttps://github.com/python-hyper/h11\u003e`_, `h2\n\u003chttps://github.com/python-hyper/hyper-h2\u003e`_, and `wsproto\n\u003chttps://github.com/python-hyper/wsproto\u003e`_ libraries and inspired by\nGunicorn. Hypercorn supports HTTP/1, HTTP/2, WebSockets (over HTTP/1\nand HTTP/2), ASGI, and WSGI specifications. Hypercorn can utilise\nasyncio, uvloop, or trio worker types.\n\nHypercorn can optionally serve the current draft of the HTTP/3\nspecification using the `aioquic\n\u003chttps://github.com/aiortc/aioquic/\u003e`_ library. To enable this install\nthe ``h3`` optional extra, ``pip install hypercorn[h3]`` and then\nchoose a quic binding e.g. ``hypercorn --quic-bind localhost:4433\n...``.\n\nHypercorn was initially part of `Quart\n\u003chttps://github.com/pgjones/quart\u003e`_ before being separated out into a\nstandalone server. Hypercorn forked from version 0.5.0 of Quart.\n\nQuickstart\n----------\n\nHypercorn can be installed via `pip\n\u003chttps://docs.python.org/3/installing/index.html\u003e`_,\n\n.. code-block:: console\n\n    $ pip install hypercorn\n\nand requires Python 3.8 or higher.\n\nWith hypercorn installed ASGI frameworks (or apps) can be served via\nHypercorn via the command line,\n\n.. code-block:: console\n\n    $ hypercorn module:app\n\nAlternatively Hypercorn can be used programatically,\n\n.. code-block:: python\n\n    import asyncio\n    from hypercorn.config import Config\n    from hypercorn.asyncio import serve\n\n    from module import app\n\n    asyncio.run(serve(app, Config()))\n\nlearn more (including a Trio example of the above) in the `API usage\n\u003chttps://hypercorn.readthedocs.io/en/latest/how_to_guides/api_usage.html\u003e`_\ndocs.\n\nContributing\n------------\n\nHypercorn is developed on `Github\n\u003chttps://github.com/pgjones/hypercorn\u003e`_. If you come across an issue,\nor have a feature request please open an `issue\n\u003chttps://github.com/pgjones/hypercorn/issues\u003e`_.  If you want to\ncontribute a fix or the feature-implementation please do (typo fixes\nwelcome), by proposing a `pull request\n\u003chttps://github.com/pgjones/hypercorn/merge_requests\u003e`_.\n\nTesting\n~~~~~~~\n\nThe best way to test Hypercorn is with `Tox\n\u003chttps://tox.readthedocs.io\u003e`_,\n\n.. code-block:: console\n\n    $ pipenv install tox\n    $ tox\n\nthis will check the code style and run the tests.\n\nHelp\n----\n\nThe Hypercorn `documentation \u003chttps://hypercorn.readthedocs.io\u003e`_ is\nthe best place to start, after that try searching stack overflow, if\nyou still can't find an answer please `open an issue\n\u003chttps://github.com/pgjones/hypercorn/issues\u003e`_.\n\n\n.. |Build Status| image:: https://github.com/pgjones/hypercorn/actions/workflows/ci.yml/badge.svg\n   :target: https://github.com/pgjones/hypercorn/commits/main\n\n.. |docs| image:: https://img.shields.io/badge/docs-passing-brightgreen.svg\n   :target: https://hypercorn.readthedocs.io\n\n.. |pypi| image:: https://img.shields.io/pypi/v/hypercorn.svg\n   :target: https://pypi.python.org/pypi/Hypercorn/\n\n.. |http| image:: https://img.shields.io/badge/http-1.0,1.1,2-orange.svg\n   :target: https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol\n\n.. |python| image:: https://img.shields.io/pypi/pyversions/hypercorn.svg\n   :target: https://pypi.python.org/pypi/Hypercorn/\n\n.. |license| image:: https://img.shields.io/badge/license-MIT-blue.svg\n   :target: https://github.com/pgjones/hypercorn/blob/main/LICENSE\n","funding_links":[],"categories":["Http servers","Python","ASGI Servers","Servers","HarmonyOS","ASGI服务器","Web Frameworks \u0026 RESTful API"],"sub_categories":["More","Tutorials","Windows Manager","ASGI Servers"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgjones%2Fhypercorn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgjones%2Fhypercorn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgjones%2Fhypercorn/lists"}