A lightweight Python web application template using FastHTML with the following key features:
- HTTP server for dynamic HTML components
- Default port 8000
- uv package manager for fast dependency management
- Hot reloading support
- Python 3.13+
- uv package manager
git clone https://github.com/dollardeploy/example-python-uv/
cd example-python-uvcurl -LsSf https://astral.sh/uv/install.sh | sh
uv sync# Development mode
uv run uvicorn main:app --host 0.0.0.0 --port 8000 --reloadTo deploy this application with DollarDeploy, use the following settings:
- Type:
native - Build => Build Command:
uv sync - Deploy => Custom Start Command:
uv run uvicorn main:app --host 0.0.0.0 --port $PORT - Deploy => Custom pre start shell command:
curl -LsSf https://astral.sh/uv/install.sh | sh - Main port:
8000
main.py- Main application file with FastHTML routespyproject.toml- Project configuration and dependenciesuv.lock- Locked dependency versions
Boilerplate for a Python FastHTML webapp which is easy to deploy to any cloud provider with DollarDeploy.