Type to search…

Project

Introducció

uv supports managing Python projects, which define their dependencies in a pyproject.toml file.

Creating a new project

You can create a new Python project using the uv init command:

shell
uv init hello
cd hello

Alternatively, you can initialize a project in the working directory:

shell
mkdir hello
cd hello
uv init

uv will create the following files:

shell
├── .gitignore
├── .python-version
├── README.md
├── main.py
└── pyproject.toml

The main.py file contains a simple “Hello world” program. Try it out with uv run:

shell
uv run main.py

You're reading a preview.

Sign in with Google to read the full page. A Google account includes 5 free pages in total; students and teachers read their course pages without limit.

Sign in