Forked from AnimeshRy/gist:5594830c91bbcf10ad886cfaca3472ad
Last active
June 10, 2025 04:18
-
-
Save teebow1e/9381e2adeed4ab012c8ee6008dffdcc7 to your computer and use it in GitHub Desktop.
[Tooling] uv cheatsheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## install uv on OS | |
curl -LsSf https://astral.sh/uv/install.sh | sh | |
## create new project | |
uv init myproj | |
## install packages | |
uv add django requests "pandas>=2.3" | |
## remove package | |
uv remove django | |
## see pkg dependency tree | |
uv tree | |
## run a python script directly w/o starting venv | |
uv run main.py | |
## install specific version of python | |
uv python list | |
uv python install 3.12 | |
## start a new project and pin it to Python 3.12 | |
uv init myproject | |
uv python pin 3.12 | |
uv add django | |
uv run main.py (will automatically install py3.12 and django into venv) | |
## run a cli tool like Ruff | |
uv run tool ruff (or uvx ruff) | |
## update uv version to latest | |
uv self update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment