You are here |
jimlawless.net | ||
| | | |
ericlathrop.com
|
|
| | | | I often need to view a bunch of static HTML files in my browser locally, and I often need to open them with http:// rather than file:// URLs so related CSS or JavaScript files load correctly. Luckily, Python provides a simple web server, and most Linux distros include Python. | |
| | | |
me.micahrl.com
|
|
| | | | All rituals restricted. All rites reserved. | |
| | | |
dusty.phillips.codes
|
|
| | | | I really appreciate Python's pathlib module for managing filesystem stuff. While I don't love the argparse module for command line parsing, I don't think it's worse than other available options. I usually choose it for my CLI scripts, since nothing else is good enough to overcome the inertia of using a third party library. Not many people seem to be aware that the two can very easily be combined such that argparse will return Path objects instead of strings that need to be adapted after you query them: | |
| | | |
www.evil.blog
|
|
| |