Skip to main content

Installation

Run the following command in PowerShell to install UV:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Commands

Initialize a Project

Set up a new project with the following command:
uv init suma-py

Manage Dependencies

Define project dependencies using the .toml file.

Run the Main Program

Run the main program and create a .venv virtual environment:
uv run main.py

Install Packages

Add packages to your project with:
uv add numpy

Run a Program with Specific Packages

Install packages and run a script in one step:
uv add --script just.py 'numpy' 'pandas'
uv run just.py

Additional Resources

For more information, refer to the UV and Ruff using Rust Documentation.