plinder.core.utils.dataclass#

plinder.core.utils.dataclass.atom_array_summary_markdown_repr(array: AtomArray) → str[source]#
plinder.core.utils.dataclass.stringify_dataclass(obj: Any, indent: int = 4, _indents: int = 0, verbose_atom_array: bool = False) → str[source]#

Pretty repr (or print) a (possibly deeply-nested) dataclass. Each new block will be indented by indent spaces (default is 4).

https://stackoverflow.com/questions/66807878/pretty-print-dataclasses-prettier-with-line-breaks-and-indentation