Escriu per cercar…

Project

Aquesta pàgina encara no s'ha traduït — es mostra en l'idioma original:English

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

Estàs llegint una vista prèvia.

Inicia sessió amb Google per llegir la pàgina completa. Un compte de Google inclou 5 pàgines gratuïtes en total; l'alumnat i el professorat llegeixen les pàgines del seu curs sense límit.

Inicia sessió