inspecta

raw JSON →
0.1.3 verified Fri May 01 auth: no python

A colorized object pretty printer for Python, version 0.1.3. Currently in early development with no stable release frequency.

pip install inspecta
error ModuleNotFoundError: No module named 'inspecta'
cause Package not installed.
fix
pip install inspecta
error NameError: name 'pp' is not defined
cause Incorrect import pattern (e.g. from inspecta import pp but function is inspecta.pp).
fix
Use import inspecta then inspecta.pp(...)
gotcha The package is very early (0.1.3) and may have unstable API or incomplete features.
fix Pin to a specific version if used in production.
deprecated No deprecation notices yet, but API may change without warning.
fix Test upgrades carefully.

Basic usage of inspecta to pretty print a dictionary.

import inspecta

my_obj = {'key': 'value', 'nested': [1, 2, 3]}
inspecta.pp(my_obj)