Skip to content
Public template

About

Example of using Python with UV and deploy to your server with DollarDeploy

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

Python FastHTML Web App Boilerplate

A lightweight Python web application template using FastHTML with the following key features:

Key Features

  • HTTP server for dynamic HTML components
  • Default port 8000
  • uv package manager for fast dependency management
  • Hot reloading support

Prerequisites

  • Python 3.13+
  • uv package manager

Quick Start

Clone Repository

git clone https://github.com/dollardeploy/example-python-uv/
cd example-python-uv

Build

curl -LsSf https://astral.sh/uv/install.sh | sh
uv sync

Run

# Development mode
uv run uvicorn main:app --host 0.0.0.0 --port 8000 --reload

DollarDeploy Configuration

To 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

Project Structure

  • main.py - Main application file with FastHTML routes
  • pyproject.toml - Project configuration and dependencies
  • uv.lock - Locked dependency versions

About

Boilerplate for a Python FastHTML webapp which is easy to deploy to any cloud provider with DollarDeploy.

About

Example of using Python with UV and deploy to your server with DollarDeploy

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages