Yacman
Yacman is a YAML configuration manager. It provides convenient tools for dealing with YAML configuration files and is part of the PEP ecosystem. Several PEP tools use yacman for managing configuration files.
Quick start
Section titled “Quick start”from yacman import YAMLConfigManager, write_lock
# Create from a fileym = YAMLConfigManager.from_yaml_file("config.yaml")
# Access valuesprint(ym["my_key"])
# Update and write safelyym["new_key"] = "new_value"with write_lock(ym) as locked_ym: locked_ym.rebase() locked_ym.write()Documentation
Section titled “Documentation”- Tutorial - Interactive notebook with features and usage examples
- API documentation - Detailed API reference
- Upgrading guide - How to upgrade from v0.x to v1.0