Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is pretty similar to openstack's oslo.config, but without the schema for the parameters. If you want validation, and ini rather than yaml, oslo.config may be your thing.


The config is the schema to some extent. see the section about strict mode here: https://cli.dev/docs/tutorial/config_file#strict-mode

At the moment it's not as rich as all of the other command line libraries in term of types, enums etc but it's richer what it you can easily express with it.

For example, I challenge you do express logging configuration with oslo.config, or Click, org argparse. You would be writing a whole lot of code to come up with something very rigid. With Hydra composing hierarchical configs is trivial so logging configuration is not harder than anything else.

What you would do with those other CLI libraries is just is either either hard code your logging config (eew) or separate it into a different config file and add logic to deal with it. In my book this logic is an example of boilerplate that Hydra can handle cleanly.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: