uv is indeed great
uv is indeed great
Posted Apr 28, 2026 8:01 UTC (Tue) by cyperpunks (subscriber, #39406)In reply to: uv by champtar
Parent article: pip 26.1 released
Indeed, and with inline script metadata, for example:
#! /usr/bin/python3 # /// script # requires-python = ">=3.12" # dependencies = [ # "rich-argparse", # ] # /// from rich_argparse import RichHelpFormatter import sys ...
bash $ uv run myscript.pyCan also go one step further with a shebang trick and do:
bash$ cat myscript #! /usr/bin/env uv run myscript # /// script # requires-python = ">=3.12" # dependencies = [ # "rich-argparse", # ] # /// from rich_argparse import RichHelpFormatter import sys ...
bash$ chmod 0755 myscript bash$ ./myscript
