try
try copied to clipboard
[Feature Request] Add automatic import `from rich import inspect`
Suggested feature:
- It would be nice to have a flag or option to automatically import the
inspect()function fromrich(https://rich.readthedocs.io/en/latest/introduction.html#rich-inspect). Since this tool is a great way to quickly explore/try out packages, having the power ofrich.inspect()easily available seems like it would make a great pairing!
>>> inspect(pytz.timezone)
╭────────────── <function timezone at 0x10f396ac0> ──────────────╮
│ def timezone(zone): │
│ │
│ Return a datetime.tzinfo implementation for the given timezone │
│ │
│ 37 attribute(s) not shown. Run inspect(inspect) for options. │
╰────────────────────────────────────────────────────────────────╯
I really like this tool by the way! It is super convenient!