absfuyu.tools.inspector module
Absfuyu: Inspector
Inspector
Version: 5.1.0 Date updated: 10/03/2025 (dd/mm/yyyy)
- class absfuyu.tools.inspector.Inspector(obj: Any, *, line_length: int | None = 88, include_docs: bool = True, include_mro: bool = False, include_method: bool = False, include_property: bool = True, include_attribute: bool = True, include_private: bool = False, include_all: bool = False)[source]
Bases:
AutoREPRMixin
Inspect an object
- Parameters:
obj (Any) – Object to inspect
line_length (int | None) – Number of cols in inspect output (Split line every line_length). Set to
None
to useos.get_terminal_size()
, by default88
include_docs (bool, optional) – Include docstring, by default
True
include_mro (bool, optional) – Include class bases (__mro__), by default
False
include_method (bool, optional) – Include object’s methods (if any), by default
False
include_property (bool, optional) – Include object’s properties (if any), by default
True
include_attribute (bool, optional) – Include object’s attributes (if any), by default
True
include_private (bool, optional) – Include object’s private attributes, by default
False
include_all (bool, optional) – Include all infomation availble, by default
False
Example:
>>> print(Inspector(<object>, **kwargs))