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 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
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jtable-0.12.4.tar.gz.
File metadata
- Download URL: jtable-0.12.4.tar.gz
- Upload date:
- Size: 35.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9873b5ef2b5d5fdfa3427ccd9ebb1daf714a20e38ad2cb824638dd0952e222c6
|
|
| MD5 |
e5e605311e97d2ba78f63157034a2c80
|
|
| BLAKE2b-256 |
f25c1995b9ac47e8ef8a5d362ec0b187c99096af2294e8c8d30ebec31f0f69b6
|
Provenance
The following attestation bundles were made for jtable-0.12.4.tar.gz:
Publisher:
python-publish.yml on vtougne/jtable
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jtable-0.12.4.tar.gz -
Subject digest:
9873b5ef2b5d5fdfa3427ccd9ebb1daf714a20e38ad2cb824638dd0952e222c6 - Sigstore transparency entry: 1191240855
- Sigstore integration time:
-
Permalink:
vtougne/jtable@68a6f854c7307254228b5864f8ad655cc8c3278e -
Branch / Tag:
refs/tags/0.12.4 - Owner: https://github.com/vtougne
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@68a6f854c7307254228b5864f8ad655cc8c3278e -
Trigger Event:
release
-
Statement type:
File details
Details for the file jtable-0.12.4-py3-none-any.whl.
File metadata
- Download URL: jtable-0.12.4-py3-none-any.whl
- Upload date:
- Size: 40.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6e33f807c9c629c6bb91f2a055e7b0c56d9d3ddf15c02b2637d3773ceed582e
|
|
| MD5 |
38f622e6e00c203213cd7bb5fd4b9087
|
|
| BLAKE2b-256 |
d530264348fd5e1a74de1330d4f52dd72ed576051d34fc5c08554e5afb8c0909
|
Provenance
The following attestation bundles were made for jtable-0.12.4-py3-none-any.whl:
Publisher:
python-publish.yml on vtougne/jtable
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jtable-0.12.4-py3-none-any.whl -
Subject digest:
d6e33f807c9c629c6bb91f2a055e7b0c56d9d3ddf15c02b2637d3773ceed582e - Sigstore transparency entry: 1191240872
- Sigstore integration time:
-
Permalink:
vtougne/jtable@68a6f854c7307254228b5864f8ad655cc8c3278e -
Branch / Tag:
refs/tags/0.12.4 - Owner: https://github.com/vtougne
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@68a6f854c7307254228b5864f8ad655cc8c3278e -
Trigger Event:
release
-
Statement type: