Skip to main content

mojo-http-asgi

The mojo-http command: serve an ASGI application (FastAPI, Starlette, ...) with mojo-http, an HTTP server written in Mojo, from the Python environment the application is installed in. It is run as uvicorn is:

pip install mojo-http-asgi                    # once, into the application's environment
mojo-http main:app --port 8000 --workers 4    # instead of: uvicorn main:app --port 8000 --workers 4

The application and its packages are unchanged: its middleware, sessions and dependencies run in CPython as they do under any ASGI server, and mojo-http carries HTTP/1.1, HTTP/2 and WebSockets to it. mojo-http --help lists the options (HTTPS, worker processes or free-threaded worker threads, proxy headers, a Unix socket); the ASGI bridge's guide has the details and the differences from uvicorn.

What it needs:

  • Linux on x86-64 with glibc 2.35 or later (Ubuntu 22.04, Debian 12, Fedora 36 and later), and a CPU with AVX2 (x86-64-v3: Intel from 2013, AMD from 2015). The launcher says so on an older CPU.
  • CPython 3.12 or later with a shared libpython, which the server loads: Python from uv, python.org, pyenv with --enable-shared, or a distribution's libpython3.X package. Free-threaded CPython (3.14t) works, with --worker-mode thread.

The wheel carries the server program and the libraries it loads (Mojo's runtime, AWS-LC's libcrypto), with their license files; it needs no Mojo toolchain. In a checkout of mojo-http, pixi run package-wheel builds it and pip install -e python/ uses the server pixi run build-examples builds.

Metadata

Release files for mojo-http-asgi 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for mojo-http-asgi 0.0.4
File Interpreter ABI Platform Actions
mojo_http_asgi-0.0.4-py3-none-manylinux_2_35_x86_64.whl Python 3 none Linux glibc 2.35+ x86-64 Details for mojo_http_asgi-0.0.4-py3-none-manylinux_2_35_x86_64.whl

Release files / mojo_http_asgi-0.0.4-py3-none-manylinux_2_35_x86_64.whl

Download URL mojo_http_asgi-0.0.4-py3-none-manylinux_2_35_x86_64.whl
Size 5.1 MB
Tags Linux glibc 2.35+ x86-64 Python 3
SHA-256 checksum
How to use checksums
d09e756075362bdb52ac7004a60fb5a0f5e486f1fd530b030c451915adc23536
BLAKE2b-256 checksum
How to use checksums
97769aabcfbe1e8ec669ec632c3d5a6ebbc91e66852309bde2c6c6e052012490
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for mojo-http-asgi 0.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

1 file in this release has been uploaded with provenance metadata.

Attestation for mojo_http_asgi-0.0.4-py3-none-manylinux_2_35_x86_64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page