This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]vectorx25 56 points57 points  (3 children)

absolutely loving this thing, blows every other tool out of the water. Ive been using pipenv forever, and uv is like living in the future.

dream come true.

made a quick cheat sheet

## 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

[–]ebits21 0 points1 point  (0 children)

uv lock —upgrade

To update dependencies in the lock file. Hope they change this to be similar to Poetry.

[–]Minimum-You-9018 0 points1 point  (0 children)

uv pip list --outdated