Skip to main content

Pretty print .json data in your terminal

Project description

Johnson

CI codecov Documentation Status

Pretty print .json data in your terminal

Installing

Install and update using pip:

pip install -U johnson

Usage

  • Pretty print your json file
johnson -f example.json
{
  "glossary": {
    "title": "example glossary",
    "GlossDiv": {
      "title": "S",
      "GlossList": {
        "GlossEntry": {
          "ID": "SGML",
          "SortAs": "SGML",
          "GlossTerm": "Standard Generalized Markup Language",
          "Acronym": "SGML",
          "Abbrev": "ISO 8879:1986",
          "GlossDef": {
            "para": "A meta-markup language, used to create markup languages such as DocBook.",
            "GlossSeeAlso": [
              "GML",
              "XML"
            ]
          },
          "GlossSee": "markup"
        }
      }
    }
  }
}
  • See all commands available
johnson --help
 Usage: johnson [OPTIONS]

╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ *  --file                -f      PATH  path to json file [default: None] [required]                                               │
│    --install-completion                Install completion for the current shell.                                                  │
│    --show-completion                   Show completion for the current shell, to copy it or customize the installation.           │
│    --help                              Show this message and 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

johnson-0.0.2.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

johnson-0.0.2-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file johnson-0.0.2.tar.gz.

File metadata

  • Download URL: johnson-0.0.2.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for johnson-0.0.2.tar.gz
Algorithm Hash digest
SHA256 b691626e36f760c7a37b37b1b32f5c5ff5e3cb101ee99b09973dec077af3f0e5
MD5 7b54345ac1c24c0e6bd8e70c62ed6cff
BLAKE2b-256 334d44e16c033de2f40e5f5fe135b5d4615052e4cb81d69ae3e1db89d42ee6cc

See more details on using hashes here.

File details

Details for the file johnson-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: johnson-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for johnson-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d34a1f23a66691d2be21ae0d2647965358d363591007ae32234fb6cedfc27089
MD5 7df496ce4e4dbb33f00604334d197135
BLAKE2b-256 1013bedd69c40d189e9cb19b95017c894ce7f003ffbf66314f28a94f6a94dc9e

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