Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If they're your scripts (i.e. your writing/editing them) then you can declare dependencies following the PEP723 format and uv will respect that.

https://docs.astral.sh/uv/guides/scripts/#declaring-script-d...



> uv run example.py

I specifically want to run "python", rather subcommands for some other command, since I often I want to pass in arguments to the python interpreter itself, along with my script.


You can use "uv run python script.py" to the same effect.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: