drytorch.utils.repr_utils
Module containing utilities to extract readable representations.
Functions
|
Create a hierarchical representation of an object. |
Classes
|
Mixin saving instantiation timestamp. |
|
Add a counter to a prefix. |
|
YAML will attempt to use the pipe style for this class. |
|
Represent omitted values in an iterable object. |
|
Context manager to temporarily set Pandas display options. |
- recursive_repr(obj: object, *, depth: int | None = None) Any[source]
- recursive_repr(obj: Omitted, *, depth: int = 10) Omitted
- recursive_repr(obj: str, *, depth: int = 10) str
- recursive_repr(obj: None, *, depth: int = 10) None
- recursive_repr(obj: Number, *, depth: int = 10) Number
- recursive_repr(obj: tuple, *, depth: int = 1) tuple[Any, ...]
- recursive_repr(obj: list, *, depth: int = 10) list[Any]
- recursive_repr(obj: set, *, depth: int = 10) set[Hashable]
- recursive_repr(obj: dict, *, depth: int = 10) dict[str, Any]
- recursive_repr(obj: Tensor, *, depth: int = 10) LiteralStr
- recursive_repr(obj: ndarray, *, depth: int = 10) LiteralStr
- recursive_repr(obj: type, *, depth: int = 10) str
- recursive_repr(obj: LambdaType, *, depth: int = 10) str
- recursive_repr(obj: NDFrame, *, depth: int = 10) LiteralStr
Create a hierarchical representation of an object.
It recursively represents each attribute of the object or the contained items in tuples, lists, sets, and dictionaries. The latter structures are limited in size by limiting the number of elements and replacing the others with an Omitted instance. Arrays are represented using native representation Numbers are returned as they are or converted to built-in types.