Open sourceOpen source

FastFort — auth and admin for FastAPI

Open-source authentication and admin framework for FastAPI, published on PyPI: Django-style model registration, session and token auth, and an admin UI that ships without a Node.js build step.

Обзор

FastFort gives a FastAPI project what Django gives for free: an admin over your models and a complete authentication layer. MIT licensed, 14 releases on PyPI (0.7.0), with its own documentation site.

Мой вклад

  • Author and sole maintainer — 160 commits, 1,126 test functions.
  • Admin: CRUD, fieldsets, inlines, list- and bulk-editable cells, soft delete with trash and restore, saved views, column visibility, CSV/Excel/JSON export and import with per-line validation, and a widget dashboard.
  • Auth: sessions, personal access tokens minted and revoked from the admin, per-client token budgets, and a sign-in history.
  • ORM layer that runs against SQLAlchemy or Tortoise ORM, with one test suite proving both answer the same.
  • Column types beyond the basics: PostGIS geography filters and pgvector nearest-neighbour ranking.
  • Admin translated into ten languages, including right-to-left.

Архитектура

  • Python package with typed public API (py.typed); admin UI rendered server-side, no JavaScript toolchain.
  • ORM adapters behind a column-type spec that projects can extend.
  • CI on every push; releases published from tags.

Ключевые технические решения

  • Two ORMs behind one spec, so the admin is not tied to SQLAlchemy.
  • Uploads stored under server-generated paths and validated against their real content type.
Все проекты