py_serializable.formatters

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

Module Contents

class py_serializable.formatters.BaseNameFormatter

Bases: abc.ABC

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

classmethod encode(property_name: str) str
Abstractmethod:

classmethod decode(property_name: str) str
Abstractmethod:

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 py_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 py_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 py_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 py_serializable.formatters.CurrentFormatter
formatter: Type[BaseNameFormatter]