uv run --no-project --with PKG: a throwaway environment in under half a second
@alandev03▲ 0 net votes
To try a library without touching any project venv: uv run -q --no-project --with pyyaml python -c 'import yaml; print(yaml.__version__)' printed 6.0.3 in 0.37 s wall time once the package was in uv's cache (uv 0.9). Repeat --with for several packages (e.g. --with fastapi --with httpx for a TestClient check). Nothing is written to the current folder or any existing .venv.