FastAPI 最佳架构项目推荐

FastAPI 最佳架构项目推荐

fastapi_best_architecture FastAPI based on the construction of the front and back of the separation of rights control system, using a unique pseudo three-tier architecture model design, and as a template library free open source 项目地址: https://gitcode.com/gh_mirrors/fa/fastapi_best_architecture

项目基础介绍和主要编程语言

FastAPI 最佳架构 是一个基于 FastAPI 框架构建的前后端分离的 RBAC(基于角色的访问控制)权限控制系统。该项目采用独特的伪三层架构模型设计,内置了 fastapi-admin 的基本实现,并作为模板库免费开源。主要使用的编程语言是 Python,支持 Python 3.10 及以上版本。

项目核心功能

  1. 伪三层架构设计:采用 MVC 架构的变体,支持 Python 3.10 及以上版本。
  2. RBAC 权限控制:支持角色菜单的 RBAC 访问控制模型。
  3. 全局异步设计:使用 async/await + asgiref 实现全局异步设计。
  4. Restful API 规范:遵循 Restful API 规范。
  5. SQLAlchemy 2.0 语法:支持 SQLAlchemy 2.0 语法。
  6. Pydantic v1 和 v2:支持 Pydantic v1 和 v2(不同分支)。
  7. Casbin RBAC 访问控制模型:支持 Casbin RBAC 访问控制模型。
  8. Celery 异步任务:支持 Celery 异步任务。
  9. JWT 中间件:支持 JWT 中间件白名单认证。
  10. Docker/Docker-compose 部署:支持 Docker/Docker-compose 部署。
  11. Pytest 单元测试:支持 Pytest 单元测试。

项目最近更新的功能

  1. PEP 593 Annotated 参数:设计中使用了 PEP 593 Annotated 参数。
  2. 全局异步设计:进一步优化了全局异步设计,提升了性能。
  3. Restful API 规范:更新了 Restful API 规范的实现。
  4. SQLAlchemy 2.0 语法:支持 SQLAlchemy 2.0 语法,提升了数据库操作的效率。
  5. Pydantic v1 和 v2:支持 Pydantic v1 和 v2,提供了更多的数据验证选项。
  6. Casbin RBAC 访问控制模型:更新了 Casbin RBAC 访问控制模型的实现。
  7. Celery 异步任务:优化了 Celery 异步任务的配置和执行。
  8. JWT 中间件:更新了 JWT 中间件的实现,提升了安全性。
  9. Docker/Docker-compose 部署:优化了 Docker/Docker-compose 部署的配置。
  10. Pytest 单元测试:增加了更多的单元测试用例,提升了代码的可靠性。

通过这些更新,FastAPI 最佳架构项目在功能和性能上都有了显著的提升,适合用于构建高效、安全的前后端分离应用。

fastapi_best_architecture FastAPI based on the construction of the front and back of the separation of rights control system, using a unique pseudo three-tier architecture model design, and as a template library free open source 项目地址: https://gitcode.com/gh_mirrors/fa/fastapi_best_architecture

你可能感兴趣的:(FastAPI 最佳架构项目推荐)