A simple, light-weight configuration management library that uses Python dataclasses. Version 0.2.5 supports Python >=3.10, Literal types, and CLI argument parsing. Released as needed; maintained by the Idiap research institute.
pip install coqpit-configVerified import paths — ran on the pinned version, not inferred.
Define a config dataclass by inheriting from Coqpit, then instantiate and use.
Ensure all field values conform to the declared type annotation.
Always define fields in the class body; avoid dynamic attribute assignment.
Use keyword arguments: MyConfig(name='test', count=2) instead of MyConfig('test', 2).Use only keyword arguments: MyConfig(name='value')
Ensure the value matches the declared type (e.g., cast to int).
No dependency data recorded yet.