Live data from Hacker News

Uv is the best thing to happen to the Python ecosystem in a decade

emily.space

781–790 of 1001 posts

Re: Uv is the best thing to happen to the Python ecosystem in a decade

#781

Earlier quoted context omitted.

This is a PEP and not specific to uv: https://peps.python.org/pep-0723/

The shebang line references uv.

Is it time for a Debian `alternatives`-style system for PIP 723 compliant Python wrappers yet?

I could totally see `#!/usr/bin/python723` become a thing :)

Re: Uv is the best thing to happen to the Python ecosystem in a decade

#783

Uv is so good. I'm a curmudgeon about adopting new tooling, and tried uv with a lot of skepticism, but it was just better in every way. And even if it wasn't so polished and reliable, the raw speed makes it hard to go back to any other tool. Uv combined with type hints reaching critical mass in the Python ecosystem, and how solid PyLance is in VSCode, feels so good it has made me consider investing in Python as my pr…

Just profile the slow parts and rewrite them in rustm, easy.

Re: Uv is the best thing to happen to the Python ecosystem in a decade

#784

Uv is so good. I'm a curmudgeon about adopting new tooling, and tried uv with a lot of skepticism, but it was just better in every way. And even if it wasn't so polished and reliable, the raw speed makes it hard to go back to any other tool. Uv combined with type hints reaching critical mass in the Python ecosystem, and how solid PyLance is in VSCode, feels so good it has made me consider investing in Python as my pr…

I think Python has a place in many developers toolkits. I've never met anyone who hates Python (though I'm sure they exist), whereas for pretty much any other language one could mention there are much more polarizing viewpoints. (as the saying goes "Python is everyone's second favorite programming language").

The Python team needs not feel any pressure to change to compete, Python has already done quite well and found its niche.

Re: Uv is the best thing to happen to the Python ecosystem in a decade

#786
post #524
post #160

I love uv. But the post starts with a simple install using a oneliner curl piping to sh, which is such a big attack surface area… I would much rather have a much longer one liner that increases safety.

What's the difference from going to the website and downloading it, or doing it through the package manager?

Package managers or old school download from a website (gnu) provide a separate public checksum and GPG signature in multiple mirrored locations. Even if their server was compromised I can still be safe.

Re: Uv is the best thing to happen to the Python ecosystem in a decade

#787
post #260

> Instead of > > source .venv/bin/activate > python myscript.py > > you can just do > > > uv run myscript > This is by far the biggest turn off for me. The whole point of an environment manager is set the environment so that the commands I run work. They need to run natively how they are supposed to when the environment is set, not put through a translation layer. Side rant: yes I get triggered whenever someone tells…

you can just point a shotgun at your foot and pull the trigger, isn't that covenient?

Re: Uv is the best thing to happen to the Python ecosystem in a decade

#789

Uv is so good. I'm a curmudgeon about adopting new tooling, and tried uv with a lot of skepticism, but it was just better in every way. And even if it wasn't so polished and reliable, the raw speed makes it hard to go back to any other tool. Uv combined with type hints reaching critical mass in the Python ecosystem, and how solid PyLance is in VSCode, feels so good it has made me consider investing in Python as my pr…

My main question is: how good is it when it breaks? Because with most build/package tools that's when the misery starts.

Re: Uv is the best thing to happen to the Python ecosystem in a decade

#790
post #782

> curl -LsSf https://astral.sh/uv/install.sh | sh "Just pipe a random script from the internet into your shell! What could possibly go wrong?"

We've all done it. I'm curious though, I wonder what would be the best way to prevent a user from doing this.
Post reply on HN