Skip to main content

TUI Jello Explorer - filter JSON and JSON Lines data with Python syntax.

Project description

Pypi

jellex

Jello Explorer

TUI to filter JSON and JSON Lines data with Python syntax

Here is a video of jellex in action: https://youtu.be/-oR0yZ7JaO8

Jello Explorer (jellex) is a Text User Interface program to interactively process JSON and JSON Lines at the console using Python syntax. jellex uses jello on the back-end to run the queries.

Install

Jello Explorer can be installed via pip:

Pypi

pip install jellex

Usage

jellex FILE

Examples:

$ jellex file.json

or with process substitution:

$ jellex <(git log | jc --git-log)

An Editor window displays on the left and a Viewer window displays on the right. A Schema view can be toggled on the right and a Status window displays on the bottom.

The Editor window uses standard EMACS key bindings and allows you to type your Python syntax query. _ is the loaded JSON from the file presented as a python dict or list of dicts. You can use dot notation or traditional python bracket notation to access key names.

As you modify your query, the Viewer and Schema windows will update with the latest results. If there are any errors in the query (syntax errors, etc.), they will be displayed in the Status window at the bottom.

Tab completions are available for current context list indicies and key names.

Use CTRL-\ to toggle the focus between the Editor, Viewer, and Schema windows.

Use CTRL-S to toggle the Schema window.

Use CTRL-Q or CTRL-Cto exit.

Note: Reserved key names that cannot be accessed using dot notation can be accessed via standard python dictionary notation. (e.g. _.foo["get"] instead of _.foo.get)

Here is an example after running jellex twitterdata.json and modifying the query:

jellex

When you exit (CTRL-Q or CTRL-C), you will be presented with your jello filter:

$ jellex twitterdata.json
Your query:

jello '_[0].user'

$

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

jellex-0.5.7.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

jellex-0.5.7-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file jellex-0.5.7.tar.gz.

File metadata

  • Download URL: jellex-0.5.7.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for jellex-0.5.7.tar.gz
Algorithm Hash digest
SHA256 4b98432127d8e98839ead90f8b1e80549474fe230f973b7a86b5a6744e37afbb
MD5 ca9430a0379a1049243979e01b7faee0
BLAKE2b-256 bc56a806af14791940c847f334e1407a0874b1860b6cbe05f92ce9e058cc1648

See more details on using hashes here.

File details

Details for the file jellex-0.5.7-py3-none-any.whl.

File metadata

  • Download URL: jellex-0.5.7-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for jellex-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8951d791a3abb1ba929c3d0de1ad2583316b6fe55045f31f69b5f51cb5b8cefe
MD5 ed541ead2042249d9c2d2ba4b3c96e0d
BLAKE2b-256 6a69726740c579f7af19d5185122182d16460225e05e3686002fa2baa2b6748d

See more details on using hashes here.

Supported by

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