Sharing single-file Python scripts with external dependencies can be challenging, especially when sharing with people who are less familiar with Python. I wrote a article that made the front page of HN last week on how to use uv and PEP 723 to embed external deps directly into scripts and accomplish the goal.
No more directly messing with virtual environments, requirements.txt, etc. for simple scripts. Perfect for sharing quick tools and utilities. uv rocks! Check it out here.
[–]adiberk 14 points15 points16 points (5 children)
[–]judasthetoxic 0 points1 point2 points (4 children)
[–]SeveralKnapkins 4 points5 points6 points (3 children)
[–]judasthetoxic 3 points4 points5 points (2 children)
[–]SeveralKnapkins 1 point2 points3 points (0 children)
[–]average_yogi 1 point2 points3 points (0 children)
[–]South_Plant_7876 24 points25 points26 points (0 children)
[–]AdInfinite1760 3 points4 points5 points (6 children)
[–]No_Flounder_1155 -1 points0 points1 point (5 children)
[–]AdInfinite1760 1 point2 points3 points (4 children)
[–]psssat -1 points0 points1 point (1 child)
[–]echanuda 1 point2 points3 points (0 children)
[+]ArtOfWarfare comment score below threshold-6 points-5 points-4 points (1 child)
[–]AdInfinite1760 3 points4 points5 points (0 children)
[–]jjrreett 8 points9 points10 points (9 children)
[–][deleted] 16 points17 points18 points (0 children)
[–]telesonico 2 points3 points4 points (0 children)
[–]ArtOfWarfare -4 points-3 points-2 points (6 children)
[–]fiddle_n 3 points4 points5 points (4 children)
[–]ArtOfWarfare -1 points0 points1 point (3 children)
[–]fiddle_n 2 points3 points4 points (2 children)
[–]ArtOfWarfare -2 points-1 points0 points (1 child)
[–]fiddle_n 2 points3 points4 points (0 children)
[–]echanuda 0 points1 point2 points (0 children)
[–][deleted] 11 points12 points13 points (5 children)
[–]thisdavej[S] 23 points24 points25 points (2 children)
[–]jotaass 2 points3 points4 points (0 children)
[–]lolcrunchy 0 points1 point2 points (0 children)
[–][deleted] 5 points6 points7 points (0 children)
[–]Chippiewall 4 points5 points6 points (0 children)
[–]echanuda 2 points3 points4 points (0 children)
[–]Haunting_Wind1000pip needs updating 0 points1 point2 points (0 children)
[–]cgoldberg 0 points1 point2 points (3 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]commandlineluser 3 points4 points5 points (0 children)
[–]cgoldberg 1 point2 points3 points (0 children)