mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
98c6456f22
Co-authored-by: znarfm <44516102+znarfm@users.noreply.github.com>
784 B
784 B
uv
A fast Python package and project manager. Some subcommands such as
toolandpythonhave their own usage documentation. More information: https://docs.astral.sh/uv/reference/cli/.
- Create a new Python project in the current directory:
uv init
- Create a new Python project at the specified path:
uv init {{path/to/directory}}
- Add a new dependency to the project:
uv add {{package}}
- Remove a dependency from the project:
uv remove {{package}}
- Run a script or a command in the project's environment:
uv run {{path/to/script.py|command}}
- Update a project's environment from
pyproject.toml:
uv sync
- Create a lock file for the project's dependencies:
uv lock
- Build the project into source and binary distributions:
uv build