← Back to archive

Repo of the Day

fastapi-admin/fastapi-admin

Published: Jun 25, 2025

Open repository ↗

A fast admin dashboard based on FastAPI and TortoiseORM with tabler ui, inspired by Django admin

Summary

fastapi-admin is an admin dashboard library for Python web applications, built on FastAPI and TortoiseORM with a Tabler-based frontend UI and modeled after Django admin. It is distributed on PyPI as fastapi-admin and ships with a runnable Docker example. The project is released under the Apache-2.0 license.

What it is useful for

The library targets engineers who need a backend management interface for a FastAPI service without writing a custom frontend. Because it integrates with TortoiseORM, existing models can be exposed for create, read, update, and delete operations through a web UI, which is useful for content management, user administration, and inspecting data during development.

The Tabler-based interface provides a styled dashboard while keeping configuration in Python. Engineers familiar with Django admin will recognize the patterns, since the project is explicitly described as inspired by it. The repository also advertises a pro version through a separate demo, indicating a paid tier exists alongside the open-source release.

Documented dependencies include a hard requirement on Redis at runtime and a MySQL connection string in the example configuration. The README does not document other database backends for the example, so engineers using PostgreSQL or SQLite will need to consult the documentation or source code for the correct DATABASE_URL format. The README is also short on details about custom model registration, so the official documentation is the place to look for that.

How engineers can use it

The documented local setup uses Docker and is the way the README suggests trying the project:

  1. Clone the repository.
  2. Create a .env file with:
    DATABASE_URL=mysql://root:[email protected]:3306/fastapi-admin
    REDIS_URL=redis://localhost:6379/0
    
  3. Run docker-compose up -d --build.
  4. Open http://localhost:8000/admin/init to create the first admin user.

For installation into an existing project, the README documents pip install fastapi-admin, with Redis listed as a requirement. An online demo is also available with the username admin and password 123456 for evaluation without a local setup. Full configuration options live in the project documentation at https://fastapi-admin-docs.long2ice.io, and translated READMEs are bundled for Chinese, Korean, and Japanese readers.