TIL you can embed #python dependencies in a gist and then run it as a one-shot script using uv. In screenshot 1 I've pulled in pyfiglet to create a snazzy message. You can inline your dependencies into your script using `uv add --script <dep>`. This adds the necessary preamble as a comment (screenshot 2). I came across this tip whilst surfing Simon Willison’s gists. I've linked to Simon's more detailed blog post and the documentation in #uv. https://simonwillison.net/2024/Dec/19/one-shot-python-tools/
https://docs.astral.sh/uv/guides/scripts/#declaring-script-dependencies
If you have a fediverse account, you can quote this note from your own instance. Search https://hachyderm.io/users/booyaa/statuses/114958269924150234 on your instance and quote it. (Note that quoting is not supported in Mastodon.)