{"id":14979063,"url":"https://github.com/fastapi-practices/fastapi_best_architecture","last_synced_at":"2026-01-07T07:02:43.662Z","repository":{"id":160905887,"uuid":"624721291","full_name":"fastapi-practices/fastapi_best_architecture","owner":"fastapi-practices","description":"FastAPI Best Architecture is an enterprise-grade backend architecture solution built with FastAPI.  FastAPI 最佳架构是使用 FastAPI 构建的企业级后端架构解决方案","archived":false,"fork":false,"pushed_at":"2025-05-13T05:16:06.000Z","size":6003,"stargazers_count":1018,"open_issues_count":2,"forks_count":167,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-05-13T06:24:11.355Z","etag":null,"topics":["fastapi","fastapi-admin","fastapi-rbac","fastapi-sqlalchemy","fastapi-template","fba","pydantic-v2"],"latest_commit_sha":null,"homepage":"https://fastapi-practices.github.io/fastapi_best_architecture_docs/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fastapi-practices.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"custom":"https://wu-clan.github.io/sponsor/"}},"created_at":"2023-04-07T05:21:11.000Z","updated_at":"2025-05-13T05:16:11.000Z","dependencies_parsed_at":"2023-07-13T12:32:13.152Z","dependency_job_id":"c3b4b3c6-2934-4419-a795-31abe7417914","html_url":"https://github.com/fastapi-practices/fastapi_best_architecture","commit_stats":{"total_commits":298,"total_committers":7,"mean_commits":42.57142857142857,"dds":0.07718120805369133,"last_synced_commit":"e0606d115c1c05a030fac3b33347ef60988fbe4e"},"previous_names":[],"tags_count":10,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastapi-practices%2Ffastapi_best_architecture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastapi-practices%2Ffastapi_best_architecture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastapi-practices%2Ffastapi_best_architecture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastapi-practices%2Ffastapi_best_architecture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fastapi-practices","download_url":"https://codeload.github.com/fastapi-practices/fastapi_best_architecture/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254235701,"owners_count":22036964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastapi","fastapi-admin","fastapi-rbac","fastapi-sqlalchemy","fastapi-template","fba","pydantic-v2"],"created_at":"2024-09-24T13:59:06.440Z","updated_at":"2026-01-07T07:02:43.647Z","avatar_url":"https://github.com/fastapi-practices.png","language":"Python","readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cimg alt=\"The logo includes the abstract combination of the three letters FBA, forming a lightning bolt that seems to spread out from the ground\" width=\"320\" src=\"https://wu-clan.github.io/picx-images-hosting/logo/fba.png\"\u003e\n\n# FastAPI Best Architecture\n\nEnterprise-level backend architecture solution\n\nEnglish | [简体中文](./README.zh-CN.md)\n\n[![GitHub](https://img.shields.io/github/license/fastapi-practices/fastapi_best_architecture)](https://github.com/fastapi-practices/fastapi_best_architecture/blob/master/LICENSE)\n[![Python](https://img.shields.io/badge/python-3.10%2B-blue)](https://www.python.org/downloads/)\n![MySQL](https://img.shields.io/badge/MySQL-8.0%2B-%2300758f)\n![PostgreSQL](https://img.shields.io/badge/PostgreSQL-16.0%2B-%23336791)\n![SQLAlchemy](https://img.shields.io/badge/SQLAlchemy-2.0-%23778877)\n[![Pydantic v2](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/pydantic/pydantic/main/docs/badge/v2.json)](https://pydantic.dev)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)\n![Docker](https://img.shields.io/badge/Docker-%232496ED?logo=docker\u0026logoColor=white)\n[![Discord](https://img.shields.io/badge/Discord-%235865F2.svg?logo=discord\u0026logoColor=white)](https://discord.com/invite/yNN3wTbVAC)\n![Discord](https://img.shields.io/discord/1185035164577972344)\n[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/fastapi-practices/fastapi_best_architecture)\n\n\u003c/div\u003e\n\n## Pseudo 3-tier architecture\n\nThe mvc architecture is a common design pattern in python web, but the 3-tier architecture is even more fascinating\n\nIn python web development, there is no common standard for the concept of 3-tier architecture, so we'll call it a\npseudo 3-tier architecture here\n\nBut please note that we don't have a traditional multi-app structure (django, springBoot...) If you don't like this\npattern, use templates to transform it to your heart's content!\n\n| workflow       | java           | fastapi_best_architecture |\n|----------------|----------------|---------------------------|\n| view           | controller     | api                       |\n| data transmit  | dto            | schema                    |\n| business logic | service + impl | service                   |\n| data access    | dao / mapper   | crud                      |\n| model          | model / entity | model                     |\n\n## Help\n\nFor more details, please check\nthe [official documentation](https://fastapi-practices.github.io/fastapi_best_architecture_docs/)\n\n## Contributors\n\n\u003ca href=\"https://github.com/fastapi-practices/fastapi_best_architecture/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=fastapi-practices/fastapi_best_architecture\"/\u003e\n\u003c/a\u003e\n\n## Special thanks\n\n- [FastAPI](https://fastapi.tiangolo.com/)\n- [Pydantic](https://docs.pydantic.dev/latest/)\n- [SQLAlchemy](https://docs.sqlalchemy.org/en/20/)\n- [Casbin](https://casbin.org/zh/)\n- [Ruff](https://beta.ruff.rs/docs/)\n- ...\n\n## Interactivity\n\n[Discord](https://wu-clan.github.io/homepage/)\n\n## Sponsor us\n\nIf this program has helped you, you can sponsor us with some coffee\nbeans: [:coffee: Sponsor :coffee:](https://wu-clan.github.io/sponsor/)\n\n## License\n\nThis project is licensed by the terms of\nthe [MIT](https://github.com/fastapi-practices/fastapi_best_architecture/blob/master/LICENSE) license\n\n[![Stargazers over time](https://starchart.cc/fastapi-practices/fastapi_best_architecture.svg?variant=adaptive)](https://starchart.cc/fastapi-practices/fastapi_best_architecture)\n","funding_links":["https://wu-clan.github.io/sponsor/"],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastapi-practices%2Ffastapi_best_architecture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffastapi-practices%2Ffastapi_best_architecture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastapi-practices%2Ffastapi_best_architecture/lists"}