fastapi_best_architecture

A RBAC (Role-Based Access Control) permission control system built on FastAPI, featuring a unique pseudo-three-tier architecture design, with built-in basic implementation of fastapi admin as a template library, free and open-source

677
113
Python
The logo includes the abstract combination of the three letters FBA, forming a lightning bolt that seems to spread out from the ground

FastAPI Best Architecture

Enterprise-level backend architecture solution

English | 简体中文

GitHub
Python
MySQL
PostgreSQL
SQLAlchemy
Pydantic v2
Ruff
uv
Docker
Discord
Discord
Ask DeepWiki

Pseudo 3-tier architecture

The mvc architecture is a common design pattern in python web, but the 3-tier architecture is even more fascinating

In python web development, there is no common standard for the concept of 3-tier architecture, so we’ll call it a
pseudo 3-tier architecture here

But please note that we don’t have a traditional multi-app structure (django, springBoot…) If you don’t like this
pattern, use templates to transform it to your heart’s content!

workflow java fastapi_best_architecture
view controller api
data transmit dto schema
business logic service + impl service
data access dao / mapper crud
model model / entity model

Help

For more details, please check
the official documentation

Contributors

Special thanks

Interactivity

Discord

Sponsor us

If this program has helped you, you can sponsor us with some coffee
beans: ☕ Sponsor ☕

License

This project is licensed by the terms of
the MIT license

Stargazers over time