πŸ’­ Using Rich Inspect to interrogate Python objects - Textual ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ !https://textual.textualize.io/blog/2023/07/27/using-rich-inspect-to-interrogate-python-objects/ Date: July 29, 2023 Image: Textual - Using Rich Inspect to interrogate Python objects β€” Textual is a TUI framework for Python, inspired by modern web development. Textual - Using Rich Inspect to interrogate Python objects Textual is a TUI framework for Python, inspired by modern web development. Textual Documentation Β· textual.textualize.io I love rich inspect. It’s one of my most often used features of rich. It gives you a great human readable insight into python object instances. [code] >>> from rich import inspect >>> text_file = open("foo.txt", "w") >>> inspect(text_file) I have a pyflyby entry for it so that I can just run it ang get automatic imports. To not clash with the standard library inspect, which is quite useful on it’s own, I have aliased it to rinspect. [code] from rich import inspect as rinspect NOTE β”‚ This post is a thought </thoughts/>. It’s a short note that I make about someone else’s content online #thoughts </tags/thoughts/>