/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

me.micahrl.com
| | 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:
2.2 parsecs

Travel
| |
| | pythontest.com

I was asked recently about how to test the argument parsing bit of an application that used argparse. argparse is a built in Python library for dealing with parsing command line arguments for command line interfaces, CLI's. You know, like git clone . git is the application. is a command line argument. clone is a sub-command. Well, that might be a bad example, as I'm not going to use subcommands in my example, but lots of this still applies, even if you are using subcommands.
2.0 parsecs

Travel
| |
| | www.trickster.dev

Code level discussion of web scraping, gray hat automation, growth hacking and bounty hunting
1.5 parsecs

Travel
| |
| | blog.daniemon.com

How to use ChatGPT function calling to have better control of the API's response, making it easier to use the generated content in your code.
27.6 parsecs

Travel
|