uv, yes*, but really PEP 723:
https://peps.python.org/pep-0723/
* disclosure: We are a commercial client of astral.sh
Sounds a lot like vim/emacs modelines. This is neat for standalone scripts.
It’ll probably be a game changer for scripts, yes. Writing “portable” Python scripts was a nice exercise, though (and will be, for a while).
This is cool! I ended up also inventing my own syntax to place at the top of one-off scripts to specify deps. (For single-file Python scripts, vs one with a full project dir that has pyproject.toml) I will adopt this instead.