The one FastAPI boilerplate to rule them all

Hey, guys, for anyone who might benefit (or would like to contribute – good starting point for newbies)

For about 2 years I’ve been developing this boilerplate (with a lot of help from the community – 20 contributors) and it’s pretty mature now (used in prod by many). Latest news was the addition of CRUDAdmin as an admin panel, plus a brand new documentation to help people use it and understand design decisions.

Github: https://github.com/benavlabs/FastAPI-boilerplate Docs: https://benavlabs.github.io/FastAPI-boilerplate/

Main features:

Pydantic V2 and SQLAlchemy 2.0 (fully async) User authentication with JWT (and cookie based refresh token) ARQ integration for task queue (way simpler than celery, but really powerful) Builtin cache and rate-limiting with redis Several deployment specific features (docs behind authentication and hidden based on the environment) NGINX for Reverse Proxy and Load Balancing Easy and powerful db interaction (FastCRUD)

Would love to hear your opinions and what could be improved. We used to have tens of issues, now it’s down to just a few (phew), but I’d love to see new ones coming.

Note: this boilerplate works really well for microservices or small applications, but for bigger ones I’d use a DDD monolith. It’s a great starting point though.

submitted by /u/igorbenav to r/Python
[link] [comments]


Commentaires

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *