pdir
prettydir ¶
prettydir(obj: object, include_dunders: bool = False, color: bool = True, sep: bool = False, indent: int = 2) -> None
Print the attributes and methods of an object in a pretty format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj
|
object
|
The object to be inspected. |
required |
include_dunders
|
bool
|
Whether to include dunder methods. |
False
|
color
|
bool
|
Whether to colorize the output. |
True
|
sep
|
bool
|
Whether to print a separator before and after the output. |
False
|
indent
|
int
|
Indent width. |
2
|