logoalt Hacker News

verdvermtoday at 10:15 AM2 repliesview on HN

Works all and well until you need a dependency, then you need to do all the same project setup as normal.

Stopped using python for scripting for this reason


Replies

GeneralMaximustoday at 10:30 AM

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.

theanonymousonetoday at 10:26 AM

I don't think you need any dependencies to match Bash scripting in capability.

show 1 reply