decorateme._utils

Utilities for decorateme.

Module Contents

Classes

_SpecialStr

A string that can be displayed with Jupyter with line breaks and tabs.

_InfoSpecialStr

A string that can be displayed with Jupyter with line breaks and tabs.

_Utils

class decorateme._utils._SpecialStr(s: str)

Bases: str

A string that can be displayed with Jupyter with line breaks and tabs.

__repr__()

Return repr(self).

__str__()

Return str(self).

_repr_html_()
class decorateme._utils._InfoSpecialStr(s: str)

Bases: _SpecialStr

A string that can be displayed with Jupyter with line breaks and tabs.

_repr_html_()
class decorateme._utils._Utils
gen_str(only: Optional[Set[str]] = None, exclude: Optional[Callable[[str], bool]] = None, bold_surround: Callable[[str], str] = str, em_surround: Callable[[str], str] = str, delim: str = ', ', eq: str = '=', opening: str = '(', closing: str = ')', with_address: bool = True)
classmethod var_items(obj, only, exclude)
classmethod var_values(obj, only, exclude)
classmethod auto_hash(self, only: Optional[Set[str]], exclude: Optional[Callable[[str], bool]])
classmethod auto_eq(self, other, only: Optional[Set[str]], exclude: Optional[Callable[[str], bool]])