My playground for programming with Python 3.
Set up the local Python environment:
# Get the project
git clone [email protected]:wallberg/sandbox.git
cd sandbox
# Install uv (one-time, if not already installed)
# macOS:
brew install uv
# Linux / CI / non-Homebrew:
# curl -LsSf https://astral.sh/uv/install.sh | sh
# Set up virtual environment and install dependencies
# (uv auto-installs Python 3.11 if not already present)
uv sync
# Activate (optional — scripts in ./run and ./runtests use uv run automatically)
source .venv/bin/activateCommon uv commands:
| Task | Command |
|---|---|
| Install/update all deps | uv sync |
| Add a new package | uv add <pkg> |
| Run a script | uv run python script.py |
Project Euler code is tracked in a separate private repo, but can be included here:
git clone [email protected]:wallberg/project-euler.git com/github/wallberg/euler