This library, referred to as 'configs' on GitHub, provides wrappers for handling configuration through JSON, YAML, environment variables, and command-line arguments. It aims to simplify the process of loading and accessing hierarchical configuration settings. It is currently at version 0.0.1, indicating an early development stage with an infrequent release cadence.
pip install git+https://github.com/mattpaletta/configs.git#egg=configsVerified import paths — ran on the pinned version, not inferred.
Initializes the Config object, which by default attempts to load `config.json` or `config.yaml` from the current directory, and also processes environment variables. Configuration values are accessible via attribute access or a dictionary-like `get` method.
Use `pip install git+https://github.com/mattpaletta/configs.git#egg=configs` to install the correct library.
Review the GitHub repository's source code for the most up-to-date usage patterns and be prepared for potential API changes in future versions.
Ensure `config.json` or `config.yaml` files are correctly placed or explicitly pass the file path during `Config` initialization if default discovery is not desired.
Use the `.get()` method with a `default` value for potentially missing keys (e.g., `app_config.get('database.host', 'default_host')`) or implement custom error checking around attribute access.