case
detdevlib.utils.case
A simple utility for converting strings between different naming conventions.
Case
Bases: Enum
Enum of all supported casing styles.
register_conversion
register_conversion(from_style: Case, to_style: Case)
Decorator to register case conversion functions.
convert_case
convert_case(
text: str, from_style: Case, to_style: Case
) -> str
Converts a string from one casing style to another by finding the shortest path in the conversion graph.