From ffc9eb0b112c1ccc0137056f617aaf1cf628da98 Mon Sep 17 00:00:00 2001 From: "jp.av.dev" Date: Sat, 21 May 2022 23:00:52 -0400 Subject: [PATCH] ed: pyRichRepl + func inspect --- README.md | 2 +- pyRichRepl.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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 +