Comment by GeneralMaximus

Comment by GeneralMaximus 4 days ago

1 reply

If you use `uv`, you can declare your dependencies at the top of a script: https://docs.astral.sh/uv/guides/scripts/#declaring-script-d...

I've started using Python for many more tasks after I discovered this feature. I'm primarily a JS/TS developer, but the ability to write a "standalone" script that can pull in third-party dependencies without affecting your current project is a massive productivity boost.

verdverm 4 days ago

Then I have to install uv globally

That convenience you think boosts productivity is a short term thing, using comments for dependency management is an anti pattern imo