Vyper is a Python configuration library inspired by the Viper configuration system for Go. It supports reading configuration from YAML, JSON, TOML, INI, HCL, Java properties, dotenv, and environment variables, with live watching and multiple config sources. Current version: 1.2.1. Release cadence: irregular.
pip install vyper-configVerified import paths — ran on the pinned version, not inferred.
Initialize Vyper, set config name, add paths, read config, and access values. Use os.environ.get for env vars if needed.
Always check the return value of read_in_config: err = v.read_in_config() if err: handle error.
Check the changelog: https://github.com/alexferl/vyper/blob/master/CHANGELOG.md
Replace v.set_config_file('file.yaml') with v.set_config_name('file') and v.add_config_path('.')pip install vyper-config; then import vyper (not vyper_config).
Use v.read_in_config() (version >=1.0.0) or check your version.