tessl install tessl/pypi-yacs@0.1.0A lightweight library for defining and managing system configurations for scientific experimentation.
Agent Success
Agent success rate when using this tile
97%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.05x
Baseline
Agent success rate without this tile
92%
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