tessl install tessl/pypi-frozendict@2.4.0A simple immutable dictionary implementation with hashing support and performance optimizations
Agent Success
Agent success rate when using this tile
85%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.31x
Baseline
Agent success rate without this tile
65%
A configuration management utility that captures and preserves application configuration data in a completely immutable format, including all nested structures.
Creates fully immutable snapshots of configuration dictionaries with nested data structures, ensuring all levels are frozen.
Supports freezing custom configuration objects through type converter registration.
Provides visibility into the type conversion mappings used during freezing.
@generates
def create_snapshot(config):
"""
Create a completely immutable snapshot of a configuration dictionary.
All nested mutable structures (dicts, lists, sets) are recursively
converted to their immutable counterparts (frozendict, tuple, frozenset).
Parameters:
- config: dict, the configuration dictionary to snapshot
Returns:
An immutable version of the configuration with all nested structures frozen
"""
pass
def register_config_type(type_class, converter_func):
"""
Register a custom type converter for configuration objects.
Allows custom configuration types to be properly frozen during snapshot creation.
Parameters:
- type_class: type, the custom type to register
- converter_func: callable, function that converts instances to immutable form
Returns:
None
"""
pass
def get_converter_info():
"""
Get information about currently registered type converters.
Returns:
dict: Mapping of types to their converter functions
"""
passProvides recursive immutability conversion for nested data structures.
@satisfied-by