top | item 44359039

(no title)

adamckay | 8 months ago

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...

discuss

order

nomel|8 months ago

> 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.

maleldil|8 months ago

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