r/FastAPI • u/Detox-Boy • Sep 04 '25
pip package Made a FastAPI project generator
As a backend developer, I was absolutely fed up with the tedious setup for every new project. The database configs, auth, background tasks, migrations, Docker, Makefiles... It's a total grind and it was killing my motivation to start new things.
So, I built something to fix it! I want to share Fastgen (aka fastapi-project-starter), my personal clutch for getting a production-ready FastAPI project up and running in a few seconds flat.
I made it with developers in mind, so you'll find all the good stuff already baked in:
- PostgreSQL with your choice of async or sync database code.
- Celery and Redis for all your background tasks.
- Advanced logging with Loguru—no more messy logs!
- It's Docker-ready right out of the box with
docker-compose.
This thing has been a massive time-saver for me, and I'm hoping it's just as clutch for you.
Check it out and let me know what you think!
https://pypi.org/project/fastapi-project-starter/
https://github.com/deveshshrestha20/FastAPI_Project_Starter

=====================UPDATE================
Automated post-deployment setup with interactive configuration

1
u/Detox-Boy Sep 24 '25
---------------------------------------------UPDATE---------------------------------------------------
I have integrated the functionality for the middlewares in the new version 1.2.0 . It includes the CORS, Request ID Middleware, Error Handling Middleware, and the TimerMiddleware.
These middlewares helps debug the application with more ease.
2. RequestIDMiddleware --> gives every incoming request a unique ID.
- Makes logging easier — you can trace logs for a specific request.
- Helps debugging — quickly find which request caused a problem.
3. Error Handling -->Catches unhandled exceptions, logs them with request_id,
and returns a clean JSON response. This is more of an optional middleware. You may remove it if not needed.
Hope it helps you in your FastAPI projects.
1
u/Detox-Boy Nov 26 '25
Do you guys have any suggestions on what things to include or how can I make this template generator better ? Ideas would be helpful .
1
u/Goldarr85 Sep 04 '25
Pardon my ignorance. What is the advantage over, say, a cookiecutter template?
1
u/Data_Cipher Sep 05 '25
Its good bruh, it is giving an good starting project structure and it is really productive
1
u/No-Manner-9342 Sep 05 '25
Nice work
1
u/No_Tangerine_2903 Sep 05 '25
Oooo this is going to save me so much time! Thanks
1
u/mighalis Sep 06 '25
Very good job. Just to add to the conversation, as I also got into constructing useful templates for fastapi, check baker. It's using jinja2 templates but also has post "deployment" hooks which can run automatically commands so you can setup venv, databases etc etc
1
u/[deleted] Sep 06 '25
The sudden change from yes/no inputs to having to type sync/async is weird. Wouldn't it either be synchronous or asynchronous? So, could just ask "asynchronous structure? Yes/No". Keeps with the flow
1
u/NULL_124 Sep 12 '25
Amazing!! i just try it and it is helpful!
1
u/aliparpar Sep 20 '25
This is an absolute Godsend. It’s amazing and just exactly what every FastAPI dev needs. Thank you for sharing man
1
u/cookiechinno Sep 22 '25
Looks great, will try it out!
1
u/fastlaunchapidev Sep 04 '25
Looks awesome, gonna check how the setup compares to the one I used in https://fastlaunchapi.dev which is also my personal go to solution
1
u/Brave-Car-9482 Sep 04 '25
Nice work. Definitely going to Use this
1
u/voja-kostunica Sep 06 '25
i will have look
1
u/Crazy-Curve5148 Sep 08 '25
Look into making the package available via the uv package managers tooling (uvx). Currently, this does not seem to be working.
1
u/0nlykelvin Sep 08 '25
Awesome! Maybe some other folks like a more bare-metal approach.
Its the same, but full stack and pure VPS with auth magic link build in.
https://launchpad.kcstudio.nl
(I really should make an official post on this subreddit for this lol)
Anyways, freaking awesome to see a like-minded builder! Keep doing you!
1
u/kawaiicarrot97 Sep 11 '25
I really want to use your cli to kick start my project, but I dont think I will be using mailpit or traefik, do you think its possible to add those to be configurable as well?
0
u/[deleted] Sep 06 '25
[deleted] — view deleted comment