loongson/pypi/: uvicorn-0.13.3 metadata and description

Homepage Simple index Newer version available

The lightning-fast ASGI server.

author Tom Christie
author_email tom@tomchristie.com
classifiers
  • Development Status :: 4 - Beta
  • Environment :: Web Environment
  • Intended Audience :: Developers
  • License :: OSI Approved :: BSD License
  • Operating System :: OS Independent
  • Topic :: Internet :: WWW/HTTP
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.6
  • Programming Language :: Python :: 3.7
  • Programming Language :: Python :: 3.8
  • Programming Language :: Python :: 3.9
  • Programming Language :: Python :: Implementation :: CPython
  • Programming Language :: Python :: Implementation :: PyPy
description_content_type text/markdown
license BSD
provides_extras standard
requires_dist
  • click (==7.*)
  • h11 (>=0.8)
  • typing-extensions ; python_version < "3.8"
  • websockets (==8.*) ; extra == 'standard'
  • watchgod (<0.7,>=0.6) ; extra == 'standard'
  • python-dotenv (>=0.13) ; extra == 'standard'
  • PyYAML (>=5.1) ; extra == 'standard'
  • httptools (==0.1.*) ; (sys_platform != "win32" and sys_platform != "cygwin" and platform_python_implementation != "PyPy") and extra == 'standard'
  • uvloop (>=0.14.0) ; (sys_platform != "win32" and sys_platform != "cygwin" and platform_python_implementation != "PyPy") and extra == 'standard'
  • colorama (>=0.4) ; (sys_platform == "win32") and extra == 'standard'

Because this project isn't in the mirror_whitelist, no releases from root/pypi are included.

File Tox results History
uvicorn-0.13.3-py3-none-any.whl
Size
45 KB
Type
Python Wheel
Python
3

uvicorn

The lightning-fast ASGI server.


Build Status Package version

Documentation: https://www.uvicorn.org

Community: https://discuss.encode.io/c/uvicorn

Requirements: Python 3.6+ (For Python 3.5 support, install version 0.8.6.)

Uvicorn is a lightning-fast ASGI server implementation, using uvloop and httptools.

Until recently Python has lacked a minimal low-level server/application interface for asyncio frameworks. The ASGI specification fills this gap, and means we're now able to start building a common set of tooling usable across all asyncio frameworks.

Uvicorn currently supports HTTP/1.1 and WebSockets. Support for HTTP/2 is planned.

Quickstart

Install using pip:

$ pip install uvicorn

This will install uvicorn with minimal (pure Python) dependencies.

$ pip install uvicorn[standard]

This will install uvicorn with "Cython-based" dependencies (where possible) and other "optional extras".

In this context, "Cython-based" means the following:

Moreover, "optional extras" means that:

Create an application, in example.py:

async def app(scope, receive, send):
    assert scope['type'] == 'http'

    await send({
        'type': 'http.response.start',
        'status': 200,
        'headers': [
            [b'content-type', b'text/plain'],
        ],
    })
    await send({
        'type': 'http.response.body',
        'body': b'Hello, world!',
    })

Run the server:

$ uvicorn example:app

Uvicorn is BSD licensed code.
Designed & built in Brighton, England.

— 🦄 —