GithubHelp home page GithubHelp logo

wangxin688 / fastapi-enterprise-template Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 171 KB

FastAPI backend enterprise template

Python 99.49% Mako 0.44% Shell 0.07%
async fastapi fastapi-boilerplate fastapi-cache fastapi-jwt fastapi-rbac sqlalchemy template

fastapi-enterprise-template's Introduction

fastapi-enterprise-backend

Please notice that this project is still working in progress.

feature

  1. Class base view for better code structure and reduce the duplicate codes.
  2. sqlalchemy asyncpg integration.
  3. Generic DTO class for fast CRUD use. Which has good support for type hint friendly error message and power check for foreign key and unique constraints.
  4. Jwt authentication with access token and refresh token.
  5. RBAC with brand new way with fastapi operation id bounle to Role for flexible control. You can easy define every single API for every role.
  6. Rye for python package and dependencies management. I use poerty before,it working perfect but sometimes very slowly to resolve dependencies.
  7. Redis cache decorator integration for convenient api cache
  8. Pytest and coverage inintegratio
  9. Pre commit hooks with ruff for strong code style and lint checking
  10. Basic user management with crud api.
  11. I18N support for backed db and error message.
  12. X-request-id for logging and request.
  13. ...

Project Structure

planning

  1. Fix some errors and type hint issues
  2. Enhance DTO base for better crud support.
  3. Release beta version.
  4. enhance docs.

fastapi-enterprise-template's People

Contributors

wangxin688 avatar

Stargazers

Nik avatar Noyan Tendikov avatar  avatar

Watchers

 avatar

Forkers

reaxet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.