preheat_open.configuration.CaseConverter

class preheat_open.configuration.CaseConverter

Bases: object

Convert a string to a case-insensitive version.

This class is used to convert configuration keys to a specific case for easier access and comparison.

Attributes:

value (str): The original string value

__init__()

Methods

__init__()

pascal_to_snake(value)

Convert a PascalCase string to snake_case.

snake_to_pascal(value)

Convert a snake_case string to PascalCase.

pascal_to_snake(value)

Convert a PascalCase string to snake_case.

Return type:

str

Args:

value (str): The PascalCase string

Returns:

str: The converted snake_case string

snake_to_pascal(value)

Convert a snake_case string to PascalCase.

Return type:

str

Args:

value (str): The snake_case string

Returns:

str: The converted PascalCase string