Welcome to the Python Using UV learning project! This simple yet powerful setup is aimed at exploring UV, the blazing-fast Python package manager, and running a basic Flask app using Docker and docker-compose.
Video refrence : https://www.youtube.com/watch?v=6pttmsBSi8M
This project demonstrates how to:
- Replace
pip,virtualenv, andrequirements.txtwith UV. - Use UV to manage packages and environments.
- Run a simple Flask app via
uv run. - Containerize the project with Docker and manage it via
docker-compose.
.
├── app.py # Flask Application
├── uv.lock # Locked dependencies file
├── pyproject.toml # Project metadata and dependencies
├── Dockerfile # Docker setup for Flask + UV
├── docker-compose.yml # Compose file to run the app
└── README.md # You're here!uv init . # Initialize the project
uv add flask # Install Flask via UV
uv run app.py # Run the app
uv uninstall <package> # Uninstall a package
uv sync # Install from pyproject.toml & uv.lockdocker compose builddocker compose upOpen your browser at http://localhost:5000
- 🔥 Ultra-fast dependency management
- 🧼 Clean and modern replacement for
pip,venv, andrequirements.txt - 📦 Lockfile-based installations for reproducibility
Crafted with love for learning and productivity.