How Python Made One Off Scripts Even Better
I often finding myself writing one-off scripts to automate various parts of my day-to-day. You can see a few of them that have survived numerous refactors of my toolbox repo here. Python is my scripting language of choice, and until recently, I’d often find myself writing bash, to ensure that the script is portable, and easy to run. Introducing PEP 723, a new feature that describes how meta-data can be written inside a Python script. Fortunately, my favorite package manager UV, are compliant with this PEP, which means it has made writing one-off Python scripts incredibly convenient. No more manually managing virtual environments or separate requirements.txt files your dependencies, as they now live right in your script. ...