astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
25.33k stars 737 forks source link

Python API for `uv` and `uvx` #7345

Closed aaronsteers closed 2 weeks ago

aaronsteers commented 1 month ago

I would like to bundle uv/uvx in my Python app as a replacement for the venv standard library and pip-based installation methods - specifically in order to take advantage of faster install times.

Does uv have a Python interface besides the CLI, and is that stable(ish) enough to leverage in another Python project? I didn't see any mention of a Python API in the reference docs, but wanted to ask here just in case.

PS - thanks for the awesome products - I'm a huge fan of uv and ruff and I use them daily!

zanieb commented 1 month ago

No we don't provide a Python API and we're pretty unlikely to anytime soon. The CLI is the official public interface and we want to focus on providing a great experience there rather than dividing our attention.

Glad you like the tools <3