codeinabox@programming.dev to Python@programming.devEnglish · 3 days agouv is the best thing to happen to the Python ecosystem in a decadeemily.spaceexternal-linkmessage-square19fedilinkarrow-up120arrow-down11
arrow-up119arrow-down1external-linkuv is the best thing to happen to the Python ecosystem in a decadeemily.spacecodeinabox@programming.dev to Python@programming.devEnglish · 3 days agomessage-square19fedilink
minus-squarebeeng@discuss.tchncs.delinkfedilinkarrow-up7arrow-down1·edit-23 days agoUsing the UV hashbang and a few doc strings for dependencies so you can run full on python scripts as executables is fucking crack.
minus-squaresynae[he/him]@lemmy.sdf.orglinkfedilinkEnglisharrow-up0·3 days agoI have an idea of what this might look like, but do you have any examples I can crib from?
minus-squarerainwall@piefed.sociallinkfedilinkEnglisharrow-up3·3 days agoThis article looks like it explains the process: https://mathspp.com/blog/til/standalone-executable-python-scripts-with-uv
minus-squareCannonFodder@lemmy.worldlinkfedilinkarrow-up4·3 days agoCool. But for God’s sake don’t run python code from the internet, that’s such a huge security risk,
minus-squarerainwall@piefed.sociallinkfedilinkEnglisharrow-up3·21 hours agoDont worry, I just vibe run it.
minus-squaresynae[he/him]@lemmy.sdf.orglinkfedilinkEnglisharrow-up1·3 days agoThank you, this goes to the top of my reading pile for tomorrow! We’ve been doing a lot of uv conversions at work and I have a specific personal use for this as well
Using the UV hashbang and a few doc strings for dependencies so you can run full on python scripts as executables is fucking crack.
I have an idea of what this might look like, but do you have any examples I can crib from?
This article looks like it explains the process:
https://mathspp.com/blog/til/standalone-executable-python-scripts-with-uv
Cool. But for God’s sake don’t run python code from the internet, that’s such a huge security risk,
Dont worry, I just vibe run it.
Thank you, this goes to the top of my reading pile for tomorrow! We’ve been doing a lot of uv conversions at work and I have a specific personal use for this as well