A lightweight library for defining and managing system configurations for scientific experimentation.
Overall
score
97%
Evaluation — 97%
↑ 1.05xAgent success when using this tile
Build a configuration file converter that reads, modifies, and saves configuration data using YAML format.
Create a Python module that provides functionality to load configuration data from YAML format, make modifications to it, and save it back to YAML format. The module should handle hierarchical configuration structures with various data types.
Your implementation should:
@generates
def load_from_yaml(yaml_string: str):
"""
Load configuration from a YAML string.
Args:
yaml_string: A string containing YAML-formatted configuration data
Returns:
A configuration object that supports both attribute and dictionary access
"""
pass
def dump_to_yaml(config) -> str:
"""
Serialize a configuration object to a YAML string.
Args:
config: A configuration object to serialize
Returns:
A YAML-formatted string representation of the configuration
"""
passProvides configuration management with YAML serialization support.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/pypi-yacsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10