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.
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 plusferro.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/routewithasync defor plaindefhandlers (plain ones run on a thread pool so they never stall the server) -
Path and query parameters injected by name, converted from
int,float,boolandstrtype hints, with 422 errors listing every problem -
JSON request bodies (
await request.json()) and responses (dicts, lists,datetime,Decimal,UUID), plusstr,bytes,None(204) and explicitResponseobjects -
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 orApp(...)arguments -
Graceful shutdown on Ctrl+C / SIGTERM
-
ferro makemigrations/migrate/rollback/migration statuson SQLite and PostgreSQL -
Models with 12 field types, an async QuerySet (
filter,exclude,order_by, slicing,count,update,delete,bulk_create, ...) andferro db create-tables; SQL is compiled and run in Rust with bound parameters only -
ForeignKey,OneToOne,ManyToManywith lookups across relations,select_related,prefetch_relatedand reverse managers;async with transaction();aggregate,annotate,values,QandF -
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 Nwith rate limits and metrics shared by every process;ferro.cache(memory or database) -
WebSockets (
@app.websocket), server-sent events and streaming responses, andferro.broadcastto 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
- Documentation index — everything, by topic
- Installation and the tutorial (a notes API with users, an admin and tests)
- User guide: routing, models and queries, migrations, authentication, admin, cache, security, testing, logging and metrics, real-time: WebSockets, SSE, streaming, Pydantic models
- Production: deployment (Ubuntu server from zero, Docker, Kubernetes, PaaS), performance and scaling, troubleshooting
- Reference: settings, command line, stability policy, security policy, changelog
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
How it is built
The project follows spec-driven development with Spec Kit:
- docs/product-vision.md: product plan
- .specify/memory/constitution.md: non-negotiable principles
- specs/001-runtime-core/ and specs/002-orm-foundation/: spec, plan, research, contracts and tasks for each feature
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.
Metadata
Release files for ferro-framework 0.5.0rc2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ferro_framework-0.5.0rc2.tar.gz | 310.6 kB | With provenance | Details for ferro_framework-0.5.0rc2.tar.gz |
Built distributions (wheels)
Total release size: 28.9 MB
Release files / ferro_framework-0.5.0rc2.tar.gz
| Download URL | ferro_framework-0.5.0rc2.tar.gz |
|---|---|
| Size | 310.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce62ed4d1a9239ab459c268ea0c8712f4295f315bd7bcd586304ab69cbdd3812
|
|
BLAKE2b-256 checksum How to use checksums |
22de4236e6a95af6bed35a2f3ea3d3ad88130fff39f55ec87dffc572a297e8e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 20, 2026.
Transparency logRelease files / ferro_framework-0.5.0rc2-cp312-abi3-win_amd64.whl
| Download URL | ferro_framework-0.5.0rc2-cp312-abi3-win_amd64.whl |
|---|---|
| Size | 4.6 MB |
| Tags | CPython 3.12 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
c8750332c8d42d8fd243edf44879fd190cfa5c0929276ecbd237b7ff23802e5c
|
|
BLAKE2b-256 checksum How to use checksums |
31c5f04cf977e1def4c5544c183bc674a46f6085f37089ed513a22ec9c9ff3e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 20, 2026.
Transparency logRelease files / ferro_framework-0.5.0rc2-cp312-abi3-musllinux_1_2_x86_64.whl
| Download URL | ferro_framework-0.5.0rc2-cp312-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 5.1 MB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0df23e937b3b4431d872ee19c64eb582b56bd7e308fd126b76276fc4309318b8
|
|
BLAKE2b-256 checksum How to use checksums |
32bda382fe0a23b54de0db66c6c29e18a86687b4eef9f3b0e8a0886c1c6edb97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 20, 2026.
Transparency logRelease files / ferro_framework-0.5.0rc2-cp312-abi3-manylinux_2_28_x86_64.whl
| Download URL | ferro_framework-0.5.0rc2-cp312-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 4.9 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
4b8548a5dfc88f59b2dd49a576162314b6885f1124efe1c00dedc14a52e5e8ff
|
|
BLAKE2b-256 checksum How to use checksums |
c02d1024e6ed3c61efbc137d829a9fdea3f482f3e47e05b062fc3373ab724cb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 20, 2026.
Transparency logRelease files / ferro_framework-0.5.0rc2-cp312-abi3-manylinux_2_28_aarch64.whl
| Download URL | ferro_framework-0.5.0rc2-cp312-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 4.8 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
2b79cfeb27db9477e3e44b77a609b5fae3bfa68669e192dabca102414c0696ea
|
|
BLAKE2b-256 checksum How to use checksums |
8e6a7f3bcfee1245d688b4b4c672d64af0f5ba759e0b8819a3ca2260b5a5a080
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 20, 2026.
Transparency logRelease files / ferro_framework-0.5.0rc2-cp312-abi3-macosx_11_0_arm64.whl
| Download URL | ferro_framework-0.5.0rc2-cp312-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 4.4 MB |
| Tags | CPython 3.12 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
af94791efac2ac4436e9b1f8c0daa744757595da8935c63e4238f1c48ecd7003
|
|
BLAKE2b-256 checksum How to use checksums |
666daf8a31fd4318814e850da65c9204ba4f71ea71bae673b217d4f4a1e918ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 20, 2026.
Transparency logRelease files / ferro_framework-0.5.0rc2-cp312-abi3-macosx_10_12_x86_64.whl
| Download URL | ferro_framework-0.5.0rc2-cp312-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 4.7 MB |
| Tags | CPython 3.12 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
4326968b3eca56478b8476e607977ec8a04ea2e6796b3fec8de4246e4c9a8603
|
|
BLAKE2b-256 checksum How to use checksums |
66982dc30d015c75b607b2b9a2f4c7c9904df81cb62178f13487a0a60247f61d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 20, 2026.
Transparency logSecurity for ferro-framework 0.5.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.
Attestation for ferro_framework-0.5.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 20, 2026.
Transparency logA 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.