camel_to_kebab_case#
- petpal.meta.auto_cli.camel_to_kebab_case(name: str) str#
Convert a string in camel case to kebab case.
Camel case is used for class objects in Python, e.g. MyClass. Kebab case is used for programs, such as my-prog. This function converts a string in camel case to kebab case, for the purpose of assigning CLI program names to callable class objects.
- Parameters:
name (str) – The camel case phrase to be converted to kebab case.
- Returns:
kebab_name (str) – Input phrase converted to kebab case.