| Author | SHA1 | Date | |
|---|---|---|---|
|
5a8dfab722 |
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
5a8dfab722 |
enum_helper: Add module
Add the module enum_helper, providing the following functions: def kebab_to_pascal(value: str) -> str def pascal_to_kebab(value: str) -> str def enum_from_kebab(enum_cls: type[EnumType], value: str) -> EnumType def enum_to_kebab(member: Enum) -> str The intended use of these functions is to convert from configuration strings to application enums and back. Signed-off-by: Jan Lindemann <jan@janware.com> |