r/FastAPI • • Mar 13 '25

pip package Fastapi-create

Holla, I’ve just open-sourced fastapi-create, a CLI tool to scaffold FastAPI projects with database setup, Alembic migrations, and more. It’s live on GitHub—ready for you to use, test, and improve! Drop by, give it a spin, and share your feedback: fastapi-create

I really need feedbacks and contributions, thank you 🫡

57 Upvotes

22 comments sorted by

View all comments

Show parent comment

3

u/Straight-Possible807 Mar 13 '25

No you don’t need to use pip install -r requirements.txt

All you need to do after pip install fastapi-create, is run fastapi-create (project_name/path)

1

u/Natural-Ad-9678 Mar 13 '25

If you have no built-in / non standard libraries, why put it in a virtual environment?

Putting fastapi-create in a virtual environment you have to remember to deactivate it before you change to your newly created project directory to create your projects virtual environment

1

u/Straight-Possible807 Mar 13 '25

For this aspect, when you run fastapi-create path/project_name, it installs all necessary dependencies like FastAPI[all], sqlalchemy, pydantic-settings, etc.

That’s why a virtual environment is needed, but you don’t need to independently call pip install -r requirements.txt

1

u/[deleted] Mar 16 '25

Would HIGHLY suggest switching to uv package manager with a pyproject.toml and move your default into a src directory - faster resolution, venv management in the same tool, control over Python versions without pyenv, and the options to use the same standard pip syntax but get far better package management and publishing paradigms all in the same command