diff --git a/README.md b/README.md index 7edb57d..9dc163c 100644 --- a/README.md +++ b/README.md @@ -227,7 +227,7 @@ Script: [pythonfun.sh](./pythonfun.sh) ### Interprete a color -Color en la consola de python con módulo **rich**. [pyRichRepl.py](./pyRichRepl.py) +Color en la consola de python con módulo **rich**, mas inspector. [pyRichRepl.py](./pyRichRepl.py) ---- diff --git a/pyRichRepl.py b/pyRichRepl.py index e74217c..ae604e8 100755 --- a/pyRichRepl.py +++ b/pyRichRepl.py @@ -1,5 +1,10 @@ from rich import pretty from rich.console import Console +from rich import inspect as inspct + +def inspect(obj): + inspct(obj, methods=True) pretty.install() print = Console().print +