Y
Hacker News
new
|
ask
|
show
|
jobs
by
Terretta
88 days ago
uv, yes*, but really PEP 723:
https://peps.python.org/pep-0723/
*
disclosure: We are a commercial client of astral.sh
3 comments
the__alchemist
87 days ago
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.
link
notpushkin
88 days ago
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).
link
shurane
87 days ago
Sounds a lot like vim/emacs modelines. This is neat for standalone scripts.
link