Browse big nested data structures in ipython with keyboard
Project description
ip_object_browser
Using IPython? Did a REST endpoint return 5 MB of JSON data? Can't bother to save the response to a file? Browse it with your keyboard straight from the console!
Usage
In IPython, press <C-T>
to browse the last output object (_
).
Use vi-like hjkl
or arrow keys to navigate.
Press <C-C>
or q
to exit.
Usage from code
from ip_object_browser import view
view({})
Installation
pip install ip-object-browser
cat <<EOF >>~/.ipython/profile_default/ipython_config.py
c = get_config()
c.InteractiveShellApp.exec_lines.append(
"try:\n %load_ext ip_object_browser\nexcept ImportError: pass"
)
EOF
Implementation
Based on the urwid library, adapted from the treesample example.
TODO
- textual search functionality
- status line with current path in object
- path-based navigation
- output current path on exit
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for ip_object_browser-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25d37214daa2c5de34b2ad5c83794871d022cc55e83f59b29153f04f08d35ff9 |
|
MD5 | 99ed38feaf6a20d4d6eb90e332910936 |
|
BLAKE2b-256 | 5e8883ad422b5f76906e218a721abbab14e1cc95105a7c6c1b1220505803b831 |