Uv Python Tool Installer
Install Python tools with a single command. Powered by uv.
Quick Start
macOS and Linux
curl -LsSf uvx.sh/<package>/install.sh | sh
Replace <package> with any PyPI package name.
Windows
powershell -ExecutionPolicy ByPass -c "irm https://uvx.sh/<package>/install.ps1 | iex"
Examples
Install ruff
curl -LsSf uvx.sh/ruff/install.sh | sh
Install a specific version
curl -LsSf uvx.sh/ruff/0.8.3/install.sh | sh
Passing arguments
# Force installation
curl -LsSf uvx.sh/ruff/install.sh | sh -s -- --force
# Install from a specific index
curl -LsSf uvx.sh/cmake/install.sh | sh -s -- --index https://download.pytorch.org/whl/cpu
Scripts
install.sh
Simple bash script to install Python tools:
#!/bin/bash
# Install Python tools using uvx.sh
# Usage: ./install.sh <package> [version] [--force] [--index URL]
PACKAGE=$1
VERSION=$2
shift 2
if [ -n "$VERSION" ]; then
URL="https://uvx.sh/${PACKAGE}/${VERSION}/install.sh"
else
URL="https://uvx.sh/${PACKAGE}/install.sh"
fi
curl -LsSf "$URL" | sh -s -- "$@"
Usage:
./scripts/install.sh ruff
./scripts/install.sh ruff 0.8.3
./scripts/install.sh ruff 0.8.3 --force
Common Python Tools
ruff- Fast Python linterblack- Python code formattermypy- Static type checkerhttpie- Modern HTTP clientpipx- Install and run Python applications in isolated environmentsjupyter- Jupyter notebookspoetry- Python dependency management
Notes
- Tools are installed to
~/.local/binby default - Ensure
~/.local/binis in your PATH - Uses
uvunder the hood for fast, reliable installation - Works with any PyPI package that provides command-line tools
