Skip to main content
Pre-release

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

Ferro

A Python application framework with a Rust-native execution engine.

PyPI Python versions CI License

You write ordinary Python (models, routes, handlers). Ferro runs them on a Rust server: HTTP handling, routing, limits, JSON encoding and error handling all happen in Rust. You don't need to know Rust to use it.

Status: 0.5.0 release candidate (alpha quality). Implemented: runtime core (001), Ferro's own ORM (002) on SQLite and PostgreSQL (003), Django-style migrations (004), relations, transactions and aggregation (005), middleware and security defaults (006), authentication (007), admin (008), CLI and project generator (009), multi-process serving (010), production hardening (011), the MVP acceptance shop examples/ecommerce (012), select_for_update, custom link models and abstract models (013), TLS and HTTP/2 (014), rate limits and metrics shared across processes plus ferro.cache (015), wheels and a release workflow (016), and the release-candidate work — security review, API freeze, deployment guide (017); since then WebSockets, server-sent events and streaming with broadcast across processes (018), Pydantic models for bodies and responses (019). See the roadmap and the changelog.

pip install ferro-framework   # once published; wheels for Linux, macOS and Windows, Python 3.12+

Start a project

ferro new shop && cd shop
ferro makemigrations && ferro migrate
ferro dev

Hello world

# app.py
from ferro import App

app = App()


@app.get("/")
async def home():
    return {"message": "Hello from Rust"}
ferro dev
curl http://127.0.0.1:8000/
# {"message":"Hello from Rust"}

What works today

  • @app.get/post/put/patch/delete/route with async def or plain def handlers (plain ones run on a thread pool so they never stall the server)

  • Path and query parameters injected by name, converted from int, float, bool and str type hints, with 422 errors listing every problem

  • JSON request bodies (await request.json()) and responses (dicts, lists, datetime, Decimal, UUID), plus str, bytes, None (204) and explicit Response objects

  • One JSON error format for every error. Production 500s never leak tracebacks; development mode shows them.

  • Safe defaults: loopback bind, 1 MiB body limit, header and request timeouts, connection cap, security headers, request ids on every response, cross-origin (CSRF) protection, secure cookies; CORS and per-client rate limits one setting away — all enforced in Rust before Python runs

  • @app.middleware (async def mw(request, call_next)), request.state, request.cookies, Response.set_cookie

  • ferro.auth: users, groups, permissions, Argon2id passwords, database sessions, login_required / permission_required, ferro createsuperuser

  • ferro.admin: admin.register(Model, ModelAdmin(...)) + app.add_admin(admin) for list, search, filters, add/change/delete pages with per-model permissions

  • ferro dev (debug + auto-reload), ferro run (production), ferro routes; settings through CLI options, FERRO_* environment variables or App(...) arguments

  • Graceful shutdown on Ctrl+C / SIGTERM

  • ferro makemigrations / migrate / rollback / migration status on SQLite and PostgreSQL

  • Models with 12 field types, an async QuerySet (filter, exclude, order_by, slicing, count, update, delete, bulk_create, ...) and ferro db create-tables; SQL is compiled and run in Rust with bound parameters only

  • ForeignKey, OneToOne, ManyToMany with lookups across relations, select_related, prefetch_related and reverse managers; async with transaction(); aggregate, annotate, values, Q and F

  • select_for_update(), many-to-many through your own link model, abstract base models

  • HTTPS and HTTP/2 from ferro run --tls-cert ... --tls-key ..., no proxy required

  • ferro run --processes N with rate limits and metrics shared by every process; ferro.cache (memory or database)

  • WebSockets (@app.websocket), server-sent events and streaming responses, and ferro.broadcast to reach sockets in every process and machine through PostgreSQL

  • Pydantic models as request bodies and response models (async def create(data: ProductIn) -> ProductOut), validation errors as 422 with every problem listed

Documentation

Building from source

Requires Rust (stable), uv and CPython 3.12+.

uv venv --python 3.13 .venv
uv pip install --python .venv maturin pytest httpx ruff trustme h2 pydantic
uv run --python .venv maturin develop --uv
uv run --python .venv pytest
cargo test --workspace

maturin develop makes an unoptimized debug build (quick to compile, 3–5 times slower; ferro run warns about it). For benchmarks or serving real traffic from a checkout, use maturin develop --release.

How it is built

The project follows spec-driven development with Spec Kit:

crates/core           engine-independent types (settings, request/response, error envelope)
crates/router         path patterns and the routing trie
crates/http           HTTP engine adapter (the only crate that knows the engine)
crates/database       values, statements, errors, backend trait
crates/orm            model metadata, query AST, SQL compiler, DDL
crates/sqlite         SQLite backend (own thread pool)
crates/postgres       PostgreSQL backend (async driver, pool, TLS)
crates/migrations     schema state, diff, reversal and SQL for migrations
crates/shared         state shared by worker processes (rate-limit table; the only unsafe code)
crates/python-bridge  native module ferro._ferro (asyncio bridge, JSON, ORM bindings)
python/ferro          the Python API

License

Licensed under either of Apache License 2.0 or MIT at your option.

The native module includes open-source Rust crates (actix-web, tokio, PyO3, rustls and others), all under permissive licences; their notices are in THIRD-PARTY-LICENSES.txt, which ships in every wheel and the sdist.

Metadata

Release files for ferro-framework 0.6.0rc2

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

Source distribution (sdist)

Source distribution for ferro-framework 0.6.0rc2
File Size Uploaded Provenance Actions
ferro_framework-0.6.0rc2.tar.gz 411.1 kB With provenance Details for ferro_framework-0.6.0rc2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for ferro-framework 0.6.0rc2
File Actions
ferro_framework-0.6.0rc2-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for ferro_framework-0.6.0rc2-cp312-abi3-win_amd64.whl
ferro_framework-0.6.0rc2-cp312-abi3-musllinux_1_2_x86_64.whl CPython 3.12 abi3 Linux musl 1.2+ x86-64 Details for ferro_framework-0.6.0rc2-cp312-abi3-musllinux_1_2_x86_64.whl
ferro_framework-0.6.0rc2-cp312-abi3-manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64 Details for ferro_framework-0.6.0rc2-cp312-abi3-manylinux_2_28_x86_64.whl
ferro_framework-0.6.0rc2-cp312-abi3-manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.28+ ARM64 Details for ferro_framework-0.6.0rc2-cp312-abi3-manylinux_2_28_aarch64.whl
ferro_framework-0.6.0rc2-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for ferro_framework-0.6.0rc2-cp312-abi3-macosx_11_0_arm64.whl
ferro_framework-0.6.0rc2-cp312-abi3-macosx_10_12_x86_64.whl CPython 3.12 abi3 macOS 10.12+ x86-64 Details for ferro_framework-0.6.0rc2-cp312-abi3-macosx_10_12_x86_64.whl

Total release size: 32.8 MB

Release files / ferro_framework-0.6.0rc2.tar.gz

Download URL ferro_framework-0.6.0rc2.tar.gz
Size 411.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8291aabadf0701585a8a60165dcd49a5fe446ef46443f6ceef0ee06e9b2e38d5
BLAKE2b-256 checksum
How to use checksums
67764ab986cd4d109cd9d4f2badbdc170118a7f0b1f26e5b7d015a8fd62ac8d3
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 Oct 21, 2026.

Transparency log

Release files / ferro_framework-0.6.0rc2-cp312-abi3-win_amd64.whl

Download URL ferro_framework-0.6.0rc2-cp312-abi3-win_amd64.whl
Size 5.3 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
ab162d258252d93cc69b37174be03127437d374cff79b6776afece15b000c110
BLAKE2b-256 checksum
How to use checksums
8b0b9844714c87ce775bceb41bf74524669785515101b4fddc9a3f8d488da0b0
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 Oct 21, 2026.

Transparency log

Release files / ferro_framework-0.6.0rc2-cp312-abi3-musllinux_1_2_x86_64.whl

Download URL ferro_framework-0.6.0rc2-cp312-abi3-musllinux_1_2_x86_64.whl
Size 5.8 MB
Tags CPython 3.12 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
6209f7a51cf2b5a0e0c266293e960fec60ab0aeb78e8d615b49351b69f8c47ff
BLAKE2b-256 checksum
How to use checksums
f33335272ea160b00eaf20c927ecfcaebc8966669d01c93ee445675f55c5be44
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 Oct 21, 2026.

Transparency log

Release files / ferro_framework-0.6.0rc2-cp312-abi3-manylinux_2_28_x86_64.whl

Download URL ferro_framework-0.6.0rc2-cp312-abi3-manylinux_2_28_x86_64.whl
Size 5.6 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
def34e750407f0b31b4f4fb9186fa0071c0b6abc0b4f0fa5c349d3ae5ee5977f
BLAKE2b-256 checksum
How to use checksums
10262dc40ea29166bf4a395e2a6baafaa7a016bbf73ef3a42681a4d70fd2b7ee
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 Oct 21, 2026.

Transparency log

Release files / ferro_framework-0.6.0rc2-cp312-abi3-manylinux_2_28_aarch64.whl

Download URL ferro_framework-0.6.0rc2-cp312-abi3-manylinux_2_28_aarch64.whl
Size 5.4 MB
Tags CPython 3.12 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
2166df02f26a22e0e8d26951c88d1fa6e5c7e4b793bfd29e6c3c4369c00d845f
BLAKE2b-256 checksum
How to use checksums
a8dd1ffcc6b338a94fd4530332526c986f38e38b8aef87ed4eb42c721538dc59
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 Oct 21, 2026.

Transparency log

Release files / ferro_framework-0.6.0rc2-cp312-abi3-macosx_11_0_arm64.whl

Download URL ferro_framework-0.6.0rc2-cp312-abi3-macosx_11_0_arm64.whl
Size 5.0 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
34d3e0043d6315b2bb00bd43e1c8e0b82b24bbc5bc2b463cb274d90c80f39cb9
BLAKE2b-256 checksum
How to use checksums
3498b72a991e124c67ed36b94db88fd88982da12261f8d3fb0b393151370be0b
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 Oct 21, 2026.

Transparency log

Release files / ferro_framework-0.6.0rc2-cp312-abi3-macosx_10_12_x86_64.whl

Download URL ferro_framework-0.6.0rc2-cp312-abi3-macosx_10_12_x86_64.whl
Size 5.3 MB
Tags CPython 3.12 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
f57113573e77254f571b11607b85f486bdba33a2cf53a468d24d56189fa6b4a0
BLAKE2b-256 checksum
How to use checksums
92728b04ae3950e02cb5fe6c2c11e041e7eea34bb413d75b6a0499e213c0038e
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 Oct 21, 2026.

Transparency log

Security for ferro-framework 0.6.0rc2

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 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for ferro_framework-0.6.0rc2.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 Oct 21, 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