Skip to main content

FastFrame

FastFrame

A batteries-included Python web framework built on FastAPI.

FastFrame aims to provide a Django-like developer experience from initial development through production, while using FastAPI as its HTTP/ASGI foundation. The goal is not to recreate Django feature-for-feature. Instead, FastFrame offers strong conventions, sensible defaults, and a cohesive workflow by composing mature Python libraries underneath.

Django's developer experience, FastAPI's foundation, and modularity by default.

Status

v0.1.0. This tree is still under test. The core development loop — fastframe startproject, manage.py (runserver, migrate, shell, test, startapp), thin models with a chainable QuerySet, and Alembic migrations — is implemented and validated end-to-end against a real app (see examples/todo_app), alongside developer-experience tooling (check/check --database, showmigrations, dbshell, app lifecycle hooks, .env support, test utilities).

On top of that: a Django-style admin (declarative fields.* with automatic ForeignKey/ManyToManyField relationship generation, a REST admin API, and a bundled React admin UI); a generic, token-authenticated REST API over the same registered models; an audit log; and a built-in User model with session-based login/logout (can_access_admin-gated for the admin by default), opt-in per-model permissions (Group, permission strings — see docs/permissions.md), general-purpose session auth for non-admin routes, rate limiting on login/token endpoints, session revocation, and CORS/security headers. Admin, general auth, the token REST API, and Swagger (fastframe.docs) are batteries you opt into via INSTALLED_APPS. A freshly generated project installs none of them. Your own endpoints live in <app>.api as a FastFrameAPI, imported from fastframe.http. Request models are BaseModel and Field from fastframe.schemas (Pydantic, re-exported, not wrapped). A native APIRouter in urls.py still works. See docs/api-layer.md and docs/app-contract.md. Current security posture and open gaps (CSRF, per-object permissions): see docs/ADMIN_SECURITY_WARNING.md.

The ORM stays a thin layer over SQLAlchemy, but covers the day-to-day 90% of CRUD workflows: Q()/F() and Django-style field lookups, select_related()/prefetch_related() eager loading, bulk create/update/delete, get_or_create()/update_or_create(), values()/values_list(), only()/defer(), and an atomic() transaction helper — see docs/orm-features.md.

See docs/development.md, docs/mvp-v0.1.md, and docs/roadmap.md for what's next (templates/static files, then additional batteries).

What FastFrame is (and is not)

FastFrame provides FastFrame does not (initially)
manage.py-style project workflow Django-style views or URL dispatch
Apps, settings, and extension hooks A full query-algebra ORM (no annotate(), no subquery/window functions)
Rich-enough model helpers: filter/Q/F, eager loading, bulk ops, values(), atomic(), … (see docs/orm-features.md) Hiding SQLAlchemy for complex queries — it's always one import away
Migrations (Alembic, convention-driven) Templates, static files (next up — see roadmap)
Shell, runserver, test integration Replacing FastAPI routing or Pydantic
Admin, general auth, REST API — opt-in via INSTALLED_APPS CSRF tokens beyond SameSite=Lax, per-object permissions
Opt-in, per-model permissions (ModelAdmin.enforce_permissions) ManyToManyField(through=...) (deferred)

HTTP stays FastAPI. Hard data access stays SQLAlchemy. FastFrame owns lifecycle, conventions, and the daily loop.

Developer loop

fastframe startproject myproject
cd myproject
python manage.py runserver

python manage.py startapp users
# define models in users/models.py
python manage.py makemigrations
python manage.py migrate
python manage.py showmigrations
python manage.py shell
python manage.py dbshell
python manage.py test -v
python manage.py check --database

Inside a generated project, manage.py is the familiar entry point (similar to Django). The global installer CLI is fastframe (see docs/cli.md).

Documentation: fast-frame.readthedocs.io. Source of that site is mkdocs.yml and .readthedocs.yaml.

Documentation

Document Description
Vision & thesis Product direction and positioning
Design principles How we make tradeoffs
Architecture Components and dependencies
MVP v0.1 First release scope and success criteria
Roadmap Direction beyond the first release
Non-goals What we explicitly drop or defer
App contract Installed apps and extension points
ORM features Q/F, eager loading, bulk ops, values(), atomic(), …
Session lifecycle DB session rules
Public API Stable surface (v0.1)
Shell Stdlib REPL, SHELL_IMPORTS, startup script
Repository layout This repo and future package structure
Contributing How to participate

Architecture decisions are recorded in docs/adr/.

Technology direction (implementation choices)

Layer Planned technology
HTTP / ASGI FastAPI
Server (dev) Uvicorn
Validation Pydantic
ORM SQLAlchemy
Migrations Alembic
CLI Python management commands

These are implementation choices, not necessarily permanent public API commitments. FastFrame's abstraction should remain stable even if an underlying dependency changes.

License

MIT — see LICENSE.

Metadata

Release files for fast-frame 0.1.3

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

Source distribution (sdist)

Source distribution for fast-frame 0.1.3
File Size Uploaded Provenance
fast_frame-0.1.3.tar.gz 302.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for fast-frame 0.1.3
File Interpreter ABI Platform
fast_frame-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 651.3 kB

Release files / fast_frame-0.1.3.tar.gz

Download URL fast_frame-0.1.3.tar.gz
Size 302.5 kB
Tags Source
SHA-256 checksum
How to use checksums
66e715d73989db15168833391bbe8d61ccadc77e5bb55a2dcca3df1f06b01287
BLAKE2b-256 checksum
How to use checksums
4254ab65da3df4b0a9ada5a8515a4461d1ff0fcc04d4b773fd6c32d32edf00b4
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 2, 2026.

Transparency log

Release files / fast_frame-0.1.3-py3-none-any.whl

Download URL fast_frame-0.1.3-py3-none-any.whl
Size 348.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d217feb3d2ebc6841a7bebc69453e65ddd040e37aa88a041da98b80639b8360d
BLAKE2b-256 checksum
How to use checksums
b3b16f0ba6a6ec7026e48b80feb327add1b36a449c3b0c88de403c425265b3cf
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 2, 2026.

Transparency log

Security for fast-frame 0.1.3

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

Select from 2 files

Attestation for fast_frame-0.1.3.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 2, 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