3 ms·
Allow me to shamelessly throw my project into the ring: https://github.com/ipartola/groper https://github.com/ipartola/groper. It is Python-specific, but for me
by IgorPartola 13y ago
Allow me to shamelessly throw my project into the ring: https://github.com/ipartola/groper https://github.com/ipartola/groper. It is Python-specific, but for me it fulfills a very real need: to have a single library that I can use to both read a config file and command line parameters. getopt/argparse/optparse do not do config files, while ConfigParser and friends are at least less than friendly to use and definitely don't to command line arguments.
My colleagues and I have used this library in at least a dozen projects and it worked great. I am actually wondering if this is worth writing a PEP about to have something like this included in Python's standard library.
Edit: I forgot to mention my favorite feature of this library. As you develop your program, you define the parameters that each module will use, optionally with defaults. When you are done, you can get groper to generate a sample config file for you that includes all the options you defined in your program.
Edit 2: It looks like there are a few people downloading this package from PyPI which makes me very excited. Please feel free to let me know how your experience was with groper and what features you'd like to see added.