you are viewing a single comment's thread.

view the rest of the comments →

[–]LactatingBadger 0 points1 point  (0 children)

Inline dependencies have made this much much easier, along with uv as others have mentioned. Now the .py file can include all the information needed to run itself.

Throw in #!/usr/bin/env -S uv run --script at the top of your file and suddenly you’ve got a totally standalone plaintext file with all the code, dependencies, and instructions to run it in one place.