2 ms·
Couldn't agree more. Arguably this article is missing one of the biggest benefits: Being able to make Python scripts truly self-contained by including dependen
by lxgr 1y ago
Couldn't agree more.
Arguably this article is missing one of the biggest benefits: Being able to make Python scripts truly self-contained by including dependencies via a PEP 723 inline header and then running them via `uv run <script.py>` [1].
It's made Python my language of choice for one-off scripts easily shareable as gists, scp-able across systems etc.
[1] https://pybit.es/articles/create-project-less-python-utilities-with-uv-and-inline-script-metadata/ https://pybit.es/articles/create-project-less-python-utiliti...
- ndr 1y agoIf like me you never remember what the header looks like, uv will help there too: `uv init --script myscript.py`