Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Bessemer

Bessemer: Rust HTTP runtime with a Python API

Build a typed Python API and serve it with a Rust HTTP runtime. Write handlers with decorators, type hints, and ordinary Python functions. Bessemer runs the HTTP server and worker supervisor, with native routing, input parsing, and JSON encoding on supported request paths.

Up to 13.15× FastAPI throughput on one pinned Linux worker in the published RC12 benchmark. That result came from a typed path/query route, the kind of endpoint you can write in a few lines. GCP benchmark report

Quick start

Save this as app.py.

from bessemer import App, Query

app = App(title="Inventory API", docs_url="/docs")
app.health("/healthz")


@app.get("/items/{item_id}")
async def get_item(item_id: int, quantity: int = Query(1, ge=1, le=100)):
    return {"item_id": item_id, "quantity": quantity}

Start the server from the same directory with uvx. This pins the RC13 release candidate and uses standard CPython 3.13. Install uv

uvx --python 3.13 --from 'bessemer==1.0.0rc13' bessemer run app:app \
  --host 127.0.0.1 --port 8000 --workers 1

In another terminal:

curl -fsS 'http://127.0.0.1:8000/items/42?quantity=3'
{"item_id":42,"quantity":3}

The type hints give the handler integers. The Query constraint limits quantity to 1–100, and the same route declaration generates an OpenAPI schema. Open the bundled reference at http://127.0.0.1:8000/docs. The runtime serves /healthz directly in Rust. Application API

Performance

On the same GCP server with four pinned workers, median round p99 for small JSON was 0.380 ms on Bessemer and 2.799 ms on FastAPI.

Four-worker workload Bessemer RC12 replies/s FastAPI replies/s RC12 / FastAPI
Small JSON 302,827 41,588 7.28×
Typed path and query 295,925 32,591 9.08×
20-item typed JSON echo 143,146 24,849 5.76×
1,000-item typed JSON echo 6,713 1,784 3.75×
256-model response 80,596 13,295 6.06×

These are medians from the published RC12 Linux x86-64 wheel and FastAPI 0.165.0 with Uvicorn, uvloop, and httptools. The comparison used standard CPython 3.14.7, HTTP/1.1 keep-alive, a GCP C3 server, and a separate load generator. The last column uses paired rounds. The four-worker CPU checksums ran at 1.04–1.12× FastAPI across both Python builds, and 256 KiB downloads were near parity. Full matrix and sample data · Reproduce the benchmark

The same study tested the published RC11 wheel and free-threaded Python 3.14t. Paired p99 for the 1,000-item echo was 18.1% lower on standard Python and 15.2% lower on free-threaded Python in RC12 versus RC11. RC12 release comparison

Coming from FastAPI

Start with familiar route decorators, APIRouter, Depends, and Pydantic models. bessemer.FastAPI is an alias for bessemer.App, so you can keep those names as you port routes.

from bessemer import APIRouter, Depends, FastAPI

app = FastAPI(title="Inventory API", docs_url="/docs")
router = APIRouter(prefix="/inventory")


def warehouse() -> str:
    return "north"


@router.get("/items/{item_id}")
async def get_item(item_id: int, location: str = Depends(warehouse)):
    return {"item_id": item_id, "warehouse": location}


app.include_router(router)

Bessemer builds the route table and handler signatures at startup. Rust matches the route and handles supported scalar and JSON work. Your handler and dependency functions execute in Python, and Pydantic handles model validation when the route needs its full semantics. You can mount an ASGI app to keep existing routes available while you port others. FastAPI compatibility and porting guide

Run it under load

  • Supervise workers with the server. bessemer run starts worker processes, tracks readiness and heartbeats, restarts failed workers, and drains connections at shutdown. Linux workers can share a listener and balance bursts of new connections. Worker supervision
  • Set limits on in-flight work. Bound connections, request time, and the memory held by request and response payloads. The runtime also supports native API-key checks, rate limits, and protected metrics. Production controls
  • Keep long-lived connections in the same app. Serve HTTP/1.1 and HTTP/2, stream responses or server-sent events, and handle bidirectional WebSockets. The AG-UI adapter supports SSE and a WebSocket transport with live input and cancellation. AG-UI guide

Linux x86-64 is the qualified production platform. Published wheels cover CPython 3.12–3.14 and 3.14t on Linux x86-64, and CPython 3.12–3.13 on macOS arm64 and x86-64 and Windows x86-64. Bessemer is a 1.0 release candidate with a frozen public API for 1.x. Source builds require Rust 1.92 or newer. PyPI release files · Production readiness

Documentation

Development

From the checkout, install the native package and run the project checks.

uv venv --python 3.13
source .venv/bin/activate
uv pip install '.[dev,pydantic]'
BESSEMER_REQUIRE_NATIVE=1 ./scripts/check.sh

The repository also includes the original M0 experiment comparing a Rust handler with a Python handler driven through PyO3. Try its local paired runner with DURATION=1s CONNECTIONS=25 ./benchmarks/run_m0.sh. This is an exploratory smoke run. The formal performance gate remains open. Technical specification · M0 measurement harness

Licence

Bessemer is licensed under either of Apache License, Version 2.0 or MIT license, at your option. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Bessemer, as defined in the Apache-2.0 licence, is dual licensed as above, without any additional terms or conditions.

Metadata

Release files for bessemer 1.0.0rc13

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

Source distribution (sdist)

Source distribution for bessemer 1.0.0rc13
File Size Uploaded Provenance Actions
bessemer-1.0.0rc13.tar.gz 3.1 MB With provenance Details for bessemer-1.0.0rc13.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for bessemer 1.0.0rc13
File Actions
bessemer-1.0.0rc13-cp314-cp314t-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64 Details for bessemer-1.0.0rc13-cp314-cp314t-manylinux_2_28_x86_64.whl
bessemer-1.0.0rc13-cp314-cp314-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64 Details for bessemer-1.0.0rc13-cp314-cp314-manylinux_2_28_x86_64.whl
bessemer-1.0.0rc13-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for bessemer-1.0.0rc13-cp313-cp313-win_amd64.whl
bessemer-1.0.0rc13-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for bessemer-1.0.0rc13-cp313-cp313-manylinux_2_28_x86_64.whl
bessemer-1.0.0rc13-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for bessemer-1.0.0rc13-cp313-cp313-macosx_11_0_arm64.whl
bessemer-1.0.0rc13-cp313-cp313-macosx_10_12_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.12+ x86-64 Details for bessemer-1.0.0rc13-cp313-cp313-macosx_10_12_x86_64.whl
bessemer-1.0.0rc13-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for bessemer-1.0.0rc13-cp312-cp312-win_amd64.whl
bessemer-1.0.0rc13-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for bessemer-1.0.0rc13-cp312-cp312-manylinux_2_28_x86_64.whl
bessemer-1.0.0rc13-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for bessemer-1.0.0rc13-cp312-cp312-macosx_11_0_arm64.whl
bessemer-1.0.0rc13-cp312-cp312-macosx_10_12_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.12+ x86-64 Details for bessemer-1.0.0rc13-cp312-cp312-macosx_10_12_x86_64.whl

Total release size: 42.4 MB

Release files / bessemer-1.0.0rc13.tar.gz

Download URL bessemer-1.0.0rc13.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
827eba90fc92f8b7e56845a79a1adcd4a8e07d994b290a97101d3f5fa9957b21
BLAKE2b-256 checksum
How to use checksums
2244d6f7c12e2d12cae8386e8b3aefc7d16cef12f022498c8d8cbcd4add85ddd
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 Dec 1, 2026.

Transparency log

Release files / bessemer-1.0.0rc13-cp314-cp314t-manylinux_2_28_x86_64.whl

Download URL bessemer-1.0.0rc13-cp314-cp314t-manylinux_2_28_x86_64.whl
Size 4.1 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
d0b6419ae77974353dd656dbe8c36e52d016149f809ee9384576af941e6bc662
BLAKE2b-256 checksum
How to use checksums
e50a2f2224abdbeaf6aa520da9c0599d81669b7bf78e65e4421e1b84e4e04154
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 Dec 1, 2026.

Transparency log

Release files / bessemer-1.0.0rc13-cp314-cp314-manylinux_2_28_x86_64.whl

Download URL bessemer-1.0.0rc13-cp314-cp314-manylinux_2_28_x86_64.whl
Size 4.1 MB
Tags CPython 3.14 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a8510bf5239e5103592ed696c8151e9efdf4857a3569a2e042a65052e81edbe1
BLAKE2b-256 checksum
How to use checksums
48b91f765c0c6ba7e0589d9c9581126bac50ae830fc60ff7eb8a17a958bce829
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 Dec 1, 2026.

Transparency log

Release files / bessemer-1.0.0rc13-cp313-cp313-win_amd64.whl

Download URL bessemer-1.0.0rc13-cp313-cp313-win_amd64.whl
Size 3.8 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
a30f09535d2ca4a13022088178836cfb2ebd63512000e5587f8a1dce8757f581
BLAKE2b-256 checksum
How to use checksums
e52e2205173a36e1a9285c78011ed301c121ab9091bc9c002124149b95d41047
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 Dec 1, 2026.

Transparency log

Release files / bessemer-1.0.0rc13-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL bessemer-1.0.0rc13-cp313-cp313-manylinux_2_28_x86_64.whl
Size 4.1 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
1847ffe6ef002e166674b7fe70cf30fa36c86ff5844f6dc26d4c0c6fad56bc90
BLAKE2b-256 checksum
How to use checksums
73be66566dbe960360b09bad1635bdfce0d8d70e6fddd6a5da501cf43b8db3fd
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 Dec 1, 2026.

Transparency log

Release files / bessemer-1.0.0rc13-cp313-cp313-macosx_11_0_arm64.whl

Download URL bessemer-1.0.0rc13-cp313-cp313-macosx_11_0_arm64.whl
Size 3.8 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
89f9a0bbad6fd9cf6491a4ae07ec74c104706f700faafd61ff52eecdf83e470a
BLAKE2b-256 checksum
How to use checksums
3140dd89ab1a938a05e1264b3acf95a6f834265ce697b48e6a0dbd10a5c9fb5f
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 Dec 1, 2026.

Transparency log

Release files / bessemer-1.0.0rc13-cp313-cp313-macosx_10_12_x86_64.whl

Download URL bessemer-1.0.0rc13-cp313-cp313-macosx_10_12_x86_64.whl
Size 3.9 MB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
9266ba19c2b610cad17b20062be456e8dd9fcdacc4ec0baea18adedd25762599
BLAKE2b-256 checksum
How to use checksums
90930ef6e9cfea3b83f9fc97c71cadf72c9ecf2f0d8de5eee5c804aa945f75f7
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 Dec 1, 2026.

Transparency log

Release files / bessemer-1.0.0rc13-cp312-cp312-win_amd64.whl

Download URL bessemer-1.0.0rc13-cp312-cp312-win_amd64.whl
Size 3.8 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
838ba6a2ace4ba0028f05261a0c7fac1277f01326266c8e5a216fdfebce0de15
BLAKE2b-256 checksum
How to use checksums
0b73904bde3e0f42cd8f51c4f8507cfdc343df63b908dfeaec1834469d21d6da
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 Dec 1, 2026.

Transparency log

Release files / bessemer-1.0.0rc13-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL bessemer-1.0.0rc13-cp312-cp312-manylinux_2_28_x86_64.whl
Size 4.1 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
7a303e59bb7cb3070ad3d32160b3b46f3cd1493b1feba1517b1d02f4781b4656
BLAKE2b-256 checksum
How to use checksums
784178cd2a9af26e431eac896a26462e429c1f0682d4ebeb546ecaa8e346e54c
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 Dec 1, 2026.

Transparency log

Release files / bessemer-1.0.0rc13-cp312-cp312-macosx_11_0_arm64.whl

Download URL bessemer-1.0.0rc13-cp312-cp312-macosx_11_0_arm64.whl
Size 3.8 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7804d1bf079bc6771bbcd243b91ec61981ee2680e226427509b401b9ff8cdb15
BLAKE2b-256 checksum
How to use checksums
b90c626dab8c77c3db64b5314e99619439ad3664f6f09132c45b53cc81dc6aae
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 Dec 1, 2026.

Transparency log

Release files / bessemer-1.0.0rc13-cp312-cp312-macosx_10_12_x86_64.whl

Download URL bessemer-1.0.0rc13-cp312-cp312-macosx_10_12_x86_64.whl
Size 3.9 MB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
9a5ef64e35e099b1b8e97fd576ba0356f30e0cd70ee133585777b42f277ecab9
BLAKE2b-256 checksum
How to use checksums
0106db2e2a71c7988c67bdb3b0601b8f7a470c13b48f1a2bf189be5d376d4a1a
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 Dec 1, 2026.

Transparency log

Security for bessemer 1.0.0rc13

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

All 11 files in this release have been uploaded with provenance metadata.

Select from 11 files

Attestation for bessemer-1.0.0rc13.tar.gz

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 Dec 1, 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.

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