ed: pyRichRepl + func inspect

This commit is contained in:
jp.av.dev 2022-05-21 23:00:52 -04:00
parent a206df3cee
commit ffc9eb0b11
2 changed files with 6 additions and 1 deletions

View File

@ -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)
----

View File

@ -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