Skip to main content

Tabulate JSON data and transform them using Jinja templates.

Project description

Jtable

Jtable helps you render tables from key/value sources like JSON, YAML, and Python dictionaries. It works as a CLI tool, a Jinja filter (usable in Ansible, Django, Flask, etc.), or a Python module.


Features

  • Render tables from JSON, YAML, or Python objects
  • CLI usage, Jinja filter, or Python import
  • Conditional coloring and formatting
  • Advanced selection, filtering, and transformation with query files
  • Output formats: plain, JSON, HTML, GitHub, LaTeX, etc.
  • Multi-file loading and aggregation
  • Integration with Ansible and other Python frameworks
  • Inspect and explore nested data structures

Gallery

See [Gallery]({{ doc_base_url }}/doc/gallery.md) for visual examples and screenshots.


Quick Install

pip install jtable

Or clone and use locally:

git clone <repo_url>
cd jtable
pip install -r requirements.txt

Basic Usage

- hostname: host_1
  os: linux
  cost: 5000
  state: alive
  env: qua
- hostname: host_2
  os: linux
  cost: 5000
  state: alive
  env: qua
- hostname: host_3
  os: linux
  state: unreachable
  env: qua
cat host_dataset.yml | jtable

Output:

hostname    os       cost  state        env
----------  -----  ------  -----------  -----
host_1      linux    5000  alive        qua
host_2      linux    5000  alive        qua
host_3      linux          unreachable  qua

More Examples

  • [Setup Guide]({{ doc_base_url }}/doc/setup/README.md)
  • [Advanced Examples]({{ doc_base_url }}/doc/examples/README.md)

Contributing

Pull requests and issues are welcome! For major changes, please open an issue first to discuss what you would like to change.


License

See [LICENSE.txt]({{ doc_base_url }}/LICENSE.txt)

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

jtable-0.11.8.tar.gz (27.9 kB view details)

Uploaded Source

Built Distribution

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

jtable-0.11.8-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

Details for the file jtable-0.11.8.tar.gz.

File metadata

  • Download URL: jtable-0.11.8.tar.gz
  • Upload date:
  • Size: 27.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for jtable-0.11.8.tar.gz
Algorithm Hash digest
SHA256 f2b5af1bc4b36a56e51502dc9b71eede1a69edc55caab3afa39ca45199e1f431
MD5 b140d0ec9bc28d5a461ace47a26a9bcb
BLAKE2b-256 73a2611d090325b43829c2fc6de0fc547116142b8a2ea6d8ac9d35f47715ffb2

See more details on using hashes here.

Provenance

The following attestation bundles were made for jtable-0.11.8.tar.gz:

Publisher: python-publish.yml on vtougne/jtable

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jtable-0.11.8-py3-none-any.whl.

File metadata

  • Download URL: jtable-0.11.8-py3-none-any.whl
  • Upload date:
  • Size: 28.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for jtable-0.11.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6edda5a486098bdf001e991a275942a1f908dcd3799cf51e22866873c569f5bc
MD5 20abe98dad2fe1800268fe5467e81883
BLAKE2b-256 3e90d738489175c0f8630ae788014a6bc14fb0bb88d46902193ff584e4b5a37a

See more details on using hashes here.

Provenance

The following attestation bundles were made for jtable-0.11.8-py3-none-any.whl:

Publisher: python-publish.yml on vtougne/jtable

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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