Skip to main content

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 / to begin a textual search. Confirm with enter. Jump to next occurrence with n.

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
    • fix jump to previous (N)
  • status line with current path in object
  • path-based navigation
  • output current path on exit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ip_object_browser-0.3.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ip_object_browser-0.3.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file ip_object_browser-0.3.0.tar.gz.

File metadata

  • Download URL: ip_object_browser-0.3.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.9 Linux/4.19.72-microsoft-standard+

File hashes

Hashes for ip_object_browser-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d510455187ec0f16b1fe0854cc8f6f4aae1f0678f2ad3f9a860fa50829e0708f
MD5 e38f8c4b235f74408b0ab421c361a3d7
BLAKE2b-256 dd61335fbde2ee74a9e2da8e7ac6d86858573dd65359b80018b3428cc15a2270

See more details on using hashes here.

File details

Details for the file ip_object_browser-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: ip_object_browser-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.9 Linux/4.19.72-microsoft-standard+

File hashes

Hashes for ip_object_browser-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 131d11355f4288d4ffc76ff121339cb7765c0c4bb9d67d1cb61fed0c1cd6259a
MD5 ed19ea5ab21b789bef5d3f2f48dce47e
BLAKE2b-256 f1b45f195b7390f8413471cff10130acdfdfd3a8bb31426ad46a886c2455f37c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page