codeinabox@programming.dev to Python@programming.devEnglish · 1 day agouv is the best thing to happen to the Python ecosystem in a decadeemily.spaceexternal-linkmessage-square14fedilinkarrow-up160arrow-down10
arrow-up160arrow-down1external-linkuv is the best thing to happen to the Python ecosystem in a decadeemily.spacecodeinabox@programming.dev to Python@programming.devEnglish · 1 day agomessage-square14fedilink
minus-squarebeeng@discuss.tchncs.delinkfedilinkarrow-up15·edit-21 day 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-up5·1 day agoI have an idea of what this might look like, but do you have any examples I can crib from?
minus-squarerainwall@piefed.sociallinkfedilinkEnglisharrow-up4·21 hours agoThis article looks like it explains the process: https://mathspp.com/blog/til/standalone-executable-python-scripts-with-uv
minus-squareCannonFodder@lemmy.worldlinkfedilinkarrow-up4·21 hours agoCool. But for God’s sake don’t run python code from the internet, that’s such a huge security risk,
minus-squaresynae[he/him]@lemmy.sdf.orglinkfedilinkEnglisharrow-up1·19 hours 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,
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