Astral does it again.
My favorite use by far is doing uvx jupyter lab
, which just opens a jupyter environment in your browser.
I used it for the latest version of my 2 Chainz Rest project and it was really nice. Makes package management locally and in a Docker container way easier. https://gitlab.com/2-chainz/2chainz/-/tree/305ee50cdf658cedc1279800409bd3e11f9125a1
This is the first time I’ve created a Python project and not taken a Docker first approach in maybe 8 years.
One feature that I wish it had from Bun is the ability to define scripts https://bun.sh/docs/quickstart#run-a-script - but I may be missing something because UV does have pretty terrible documentation in my opinion. I think it was written with the assumption you have worked with tools like NPM, which was not the case for me. Coming from the world of pip, things were clear as mud at first but honestly thats probably pip
’s fault somehow.