Luigit
repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by admin

extensions/uv/README.md

Raw
Rendered preview
uv

uv

Keep Python dependency work consistent with uv instead of mixing package managers.

Use

Install uv, then use Pi normally. There is nothing to invoke. When Pi tries to run pip, pip3, poetry, python -m pip, python -m venv, or python -m py_compile, Pi blocks that command and shows an appropriate uv alternative.

For example, ask Pi to add a dependency and it should use:

uv add rich

This extension does not change commands run inside scripts. If uv is missing from PATH, Pi warns at session start, but commands are still blocked.

Installation

<img src="assets/banner.svg" alt="uv" height="70">

# uv

Keep Python dependency work consistent with `uv` instead of mixing package managers.

## Use

Install `uv`, then use Pi normally.
There is nothing to invoke.
When Pi tries to run `pip`, `pip3`, `poetry`, `python -m pip`, `python -m venv`, or `python -m py_compile`, Pi blocks that command and shows an appropriate `uv` alternative.

For example, ask Pi to add a dependency and it should use:

```text
uv add rich
```

This extension does not change commands run inside scripts.
If `uv` is missing from `PATH`, Pi warns at session start, but commands are still blocked.

[Installation](../../README.md#install)

<!-- config:start -->
<!-- config:end -->