jtable


Namejtable JSON
Version 0.10.137 PyPI version JSON
download
home_pagehttps://github.com/vtougne/jtable
SummaryTabulate JSON data and transform them using Jinja templates.
upload_time2025-07-27 15:39:05
maintainerNone
docs_urlNone
authorVincent Tougne
requires_pythonNone
licenseMIT
keywords json table jinja templating data transformation
VCS
bugtrack_url
requirements PyYAML jinja2 tabulate
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Jtable

![Colored Table Example](doc/examples/uptime_view_colored.png)

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 (see screenshot above)
- 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

---

## Quick Install
```bash
pip install jtable
```
Or clone and use locally:
```bash
git clone <repo_url>
cd jtable
pip install -r requirements.txt
```

---

## Basic Usage

```yaml
- 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
```

```bash
cat host_dataset.yml | jtable
```

Output:
```text
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](https://github.com/vtougne/jtable/blob/main/doc/setup/README.md)
- [Advanced Examples](https://github.com/vtougne/jtable/blob/main/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](https://github.com/vtougne/jtable/blob/main/LICENSE.txt)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/vtougne/jtable",
    "name": "jtable",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "json, table, jinja, templating, data transformation",
    "author": "Vincent Tougne",
    "author_email": "vtougne@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/6a/56/98e53aba7c378f7da6850412e07a15361d77e0d1f750dc908b110b8eb7f0/jtable-0.10.137.tar.gz",
    "platform": null,
    "description": "# Jtable\n\n![Colored Table Example](doc/examples/uptime_view_colored.png)\n\nJtable helps you render tables from key/value sources like JSON, YAML, and Python dictionaries.\nIt works as a CLI tool, a Jinja filter (usable in Ansible, Django, Flask, etc.), or a Python module.\n\n---\n\n## Features\n- Render tables from JSON, YAML, or Python objects\n- CLI usage, Jinja filter, or Python import\n- Conditional coloring and formatting (see screenshot above)\n- Advanced selection, filtering, and transformation with query files\n- Output formats: plain, JSON, HTML, GitHub, LaTeX, etc.\n- Multi-file loading and aggregation\n- Integration with Ansible and other Python frameworks\n- Inspect and explore nested data structures\n\n---\n\n## Quick Install\n```bash\npip install jtable\n```\nOr clone and use locally:\n```bash\ngit clone <repo_url>\ncd jtable\npip install -r requirements.txt\n```\n\n---\n\n## Basic Usage\n\n```yaml\n- hostname: host_1\n  os: linux\n  cost: 5000\n  state: alive\n  env: qua\n- hostname: host_2\n  os: linux\n  cost: 5000\n  state: alive\n  env: qua\n- hostname: host_3\n  os: linux\n  state: unreachable\n  env: qua\n```\n\n```bash\ncat host_dataset.yml | jtable\n```\n\nOutput:\n```text\nhostname    os       cost  state        env\n----------  -----  ------  -----------  -----\nhost_1      linux    5000  alive        qua\nhost_2      linux    5000  alive        qua\nhost_3      linux          unreachable  qua\n```\n\n---\n\n## More Examples\n- [Setup Guide](https://github.com/vtougne/jtable/blob/main/doc/setup/README.md)\n- [Advanced Examples](https://github.com/vtougne/jtable/blob/main/doc/examples/README.md)\n\n---\n\n## Contributing\nPull requests and issues are welcome! For major changes, please open an issue first to discuss what you would like to change.\n\n---\n\n## License\nSee [LICENSE.txt](https://github.com/vtougne/jtable/blob/main/LICENSE.txt)\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Tabulate JSON data and transform them using Jinja templates.",
    "version": "0.10.137",
    "project_urls": {
        "Homepage": "https://github.com/vtougne/jtable"
    },
    "split_keywords": [
        "json",
        " table",
        " jinja",
        " templating",
        " data transformation"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "577f69dec16258bcd1d627e03a27cf055dd9b182306a8a3ae9d215edfdc23acf",
                "md5": "9b20e2f9b07ee493488ca1bd0918ffd8",
                "sha256": "e2e7f7fef41bde27344c760cab2e4a66dff3952115b065bc342295ad318e4ac3"
            },
            "downloads": -1,
            "filename": "jtable-0.10.137-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9b20e2f9b07ee493488ca1bd0918ffd8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 25737,
            "upload_time": "2025-07-27T15:39:04",
            "upload_time_iso_8601": "2025-07-27T15:39:04.115112Z",
            "url": "https://files.pythonhosted.org/packages/57/7f/69dec16258bcd1d627e03a27cf055dd9b182306a8a3ae9d215edfdc23acf/jtable-0.10.137-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6a5698e53aba7c378f7da6850412e07a15361d77e0d1f750dc908b110b8eb7f0",
                "md5": "457e77ee5d31c7050e3510d6601a8da8",
                "sha256": "c30c8166635860eaa4c12a0e57a87f628b064c843656ec067a449a4525699490"
            },
            "downloads": -1,
            "filename": "jtable-0.10.137.tar.gz",
            "has_sig": false,
            "md5_digest": "457e77ee5d31c7050e3510d6601a8da8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 25800,
            "upload_time": "2025-07-27T15:39:05",
            "upload_time_iso_8601": "2025-07-27T15:39:05.388745Z",
            "url": "https://files.pythonhosted.org/packages/6a/56/98e53aba7c378f7da6850412e07a15361d77e0d1f750dc908b110b8eb7f0/jtable-0.10.137.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-27 15:39:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "vtougne",
    "github_project": "jtable",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "PyYAML",
            "specs": []
        },
        {
            "name": "jinja2",
            "specs": []
        },
        {
            "name": "tabulate",
            "specs": []
        }
    ],
    "lcname": "jtable"
}
        
Elapsed time: 0.72586s