serializable.formatters

Module Contents

Classes

BaseNameFormatter

Helper class that provides a standard way to create an ABC using

CamelCasePropertyNameFormatter

Helper class that provides a standard way to create an ABC using

KebabCasePropertyNameFormatter

Helper class that provides a standard way to create an ABC using

SnakeCasePropertyNameFormatter

Helper class that provides a standard way to create an ABC using

CurrentFormatter

class serializable.formatters.BaseNameFormatter

Bases: abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

abstract classmethod encode(property_name: str) str
abstract classmethod decode(property_name: str) str
classmethod decode_as_class_name(name: str) str
classmethod decode_handle_python_builtins_and_keywords(name: str) str
classmethod encode_handle_python_builtins_and_keywords(name: str) str
class serializable.formatters.CamelCasePropertyNameFormatter

Bases: BaseNameFormatter

Helper class that provides a standard way to create an ABC using inheritance.

classmethod encode(property_name: str) str
classmethod decode(property_name: str) str
classmethod decode_as_class_name(name: str) str
classmethod decode_handle_python_builtins_and_keywords(name: str) str
classmethod encode_handle_python_builtins_and_keywords(name: str) str
class serializable.formatters.KebabCasePropertyNameFormatter

Bases: BaseNameFormatter

Helper class that provides a standard way to create an ABC using inheritance.

classmethod encode(property_name: str) str
classmethod decode(property_name: str) str
classmethod decode_as_class_name(name: str) str
classmethod decode_handle_python_builtins_and_keywords(name: str) str
classmethod encode_handle_python_builtins_and_keywords(name: str) str
class serializable.formatters.SnakeCasePropertyNameFormatter

Bases: BaseNameFormatter

Helper class that provides a standard way to create an ABC using inheritance.

classmethod encode(property_name: str) str
classmethod decode(property_name: str) str
classmethod decode_as_class_name(name: str) str
classmethod decode_handle_python_builtins_and_keywords(name: str) str
classmethod encode_handle_python_builtins_and_keywords(name: str) str
class serializable.formatters.CurrentFormatter
formatter: Type[BaseNameFormatter]