Explore >> Select a destination


You are here

florimond.dev
| | dusty.phillips.codes
3.0 parsecs away

Travel
| | 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:
| | janakiev.com
2.7 parsecs away

Travel
| | When writing programs, there is often a large set of configuration and credentials that should not be hard-coded in the program. This also makes the customization of the program much easier and more generally applicable. There are various ways to handle configuration and credentials and you will see here a few of the popular and common ways to do that with Python.
| | bruceeckel.com
3.8 parsecs away

Travel
| | [AI summary] Bruce Eckel demonstrates six Python tricks for writing cleaner, more efficient code, including converting scripts to Windows executables, context managers, argument parsing, and configuration handling.
| | css-irl.info
21.7 parsecs away

Travel
| A blog about CSS, front-end development, the web, and beyond.