Installation¶
FastAPI Smith requires Python 3.10 or later.
Installing FastAPI Smith¶
Using uvx (Recommended)¶
The easiest way to run FastAPI Smith is with uvx, which runs it without installing:
This is perfect for one-time use or trying it out.
Using uv (Global Install)¶
For repeated use, install it globally with uv:
Then run:
Using pipx¶
pipx is another great option for installing CLI tools:
Then run:
Using pip¶
You can also use regular pip:
PATH Configuration
When using pip, ensure your Python scripts directory is in your PATH. On Linux/macOS this is usually ~/.local/bin, on Windows it's %APPDATA%\Python\Scripts.
From Source¶
To install from source for development:
git clone https://github.com/dhruvbhavsar0612/fastsql-project-setup.git
cd fastsql-project-setup
uv sync
uv run fastapi-smith
Verifying Installation¶
Check that FastAPI Smith is installed correctly:
You should see output like:
Updating¶
With uv¶
With pipx¶
With pip¶
Troubleshooting¶
Command not found¶
If you get "command not found" after installation:
-
Check if the script directory is in PATH:
-
Use Python module syntax:
-
Try pipx instead (recommended for CLI tools):
Permission errors¶
On Linux/macOS, avoid using sudo pip install. Instead:
Next Steps¶
Now that you have FastAPI Smith installed, let's create your first project: