{"id":23503148,"url":"https://github.com/kpfleming/jinjanator-plugin-format-toml","last_synced_at":"2026-01-22T11:33:37.024Z","repository":{"id":185879531,"uuid":"674281491","full_name":"kpfleming/jinjanator-plugin-format-toml","owner":"kpfleming","description":"Plugin for Jinjanator to allow XML-format data to be parsed and used in templates.","archived":false,"fork":false,"pushed_at":"2025-12-15T12:06:46.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-18T13:32:51.968Z","etag":null,"topics":["jinja2","jinja2-cli","python","python3","toml"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kpfleming.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"kpfleming","liberapay":"kpfleming"}},"created_at":"2023-08-03T14:58:42.000Z","updated_at":"2025-12-15T12:06:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"61e8feac-7dc8-48e7-b5d9-0ca1bc9f9137","html_url":"https://github.com/kpfleming/jinjanator-plugin-format-toml","commit_stats":null,"previous_names":["kpfleming/jinjanator-plugin-format-toml"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/kpfleming/jinjanator-plugin-format-toml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpfleming%2Fjinjanator-plugin-format-toml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpfleming%2Fjinjanator-plugin-format-toml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpfleming%2Fjinjanator-plugin-format-toml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpfleming%2Fjinjanator-plugin-format-toml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kpfleming","download_url":"https://codeload.github.com/kpfleming/jinjanator-plugin-format-toml/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpfleming%2Fjinjanator-plugin-format-toml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28662129,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jinja2","jinja2-cli","python","python3","toml"],"created_at":"2024-12-25T08:15:33.645Z","updated_at":"2026-01-22T11:33:37.013Z","avatar_url":"https://github.com/kpfleming.png","language":"Shell","funding_links":["https://github.com/sponsors/kpfleming","https://liberapay.com/kpfleming"],"categories":[],"sub_categories":[],"readme":"# jinjanator-plugin-format-toml\n\n\u003ca href=\"https://opensource.org\"\u003e\u003cimg height=\"150\" align=\"left\" src=\"https://opensource.org/files/OSIApprovedCropped.png\" alt=\"Open Source Initiative Approved License logo\"\u003e\u003c/a\u003e\n[![CI](https://github.com/kpfleming/jinjanator-plugin-format-toml/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/kpfleming/jinjanator-plugin-format-toml/actions/workflows/ci.yml)\n[![Python](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/release/python-31019/)\n[![License - Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-9400d3.svg)](https://spdx.org/licenses/Apache-2.0.html)\n[![Code Style - Black](https://img.shields.io/badge/Code%20Style-Black-000000.svg)](https://github.com/psf/black)\n[![Types - Mypy](https://img.shields.io/badge/Types-Mypy-blue.svg)](https://github.com/python/mypy)\n[![Code Quality - Ruff](https://img.shields.io/badge/Code%20Quality-Ruff-red.svg)](https://github.com/astral-sh/ruff)\n[![Project Management - Hatch](https://img.shields.io/badge/Project%20Management-Hatch-purple.svg)](https://github.com/pypa/hatch)\n[![Testing - Pytest](https://img.shields.io/badge/Testing-Pytest-orange.svg)](https://github.com/pytest-dev/pytest)\n\nThis repo contains `jinjanator-plugin-format-toml`, a plugin which\nprovides a TOML parser for the\n[jinjanator](https://github.com/kpfleming/jinjanator) tool.\n\nOpen Source software: [Apache License 2.0](https://spdx.org/licenses/Apache-2.0.html)\n\n## \u0026nbsp;\n\u003c!-- fancy-readme start --\u003e\n\nThis plugin allows jinjanator to parse TOML data for processing in\ntemplates. The format can be selected using `--format toml` or\nautoselected by using a data file with a name ending with `.toml`.\n\n## Installation\n\n```\npip install jinjanator-plugin-format-toml\n```\n\n## Usage\n\nSuppose you have an NGINX configuration file template, `nginx.j2`:\n\n```jinja2\nserver {\n  listen 80;\n  server_name {{ nginx.hostname }};\n\n  root {{ nginx.webroot }};\n  index index.htm;\n}\n```\n\nAnd you have a TOML file with the data, `nginx.toml`:\n\n```toml\n[nginx]\nhostname=\"localhost\"\nwebroot=\"/var/www/project\"\n```\n\nThis is how you render it into a working configuration file:\n\n```bash\n$ jinjanate nginx.j2 nginx.toml \u003e nginx.conf\n```\n\n## Options\n\nThis format does not support any options.\n\u003c!-- fancy-readme end --\u003e\n\n## Chat\n\nIf you'd like to chat with the jinjanator community, join us on\n[Matrix](https://matrix.to/#/#jinjanator:km6g.us)!\n\n## Credits\n\n[\"Standing on the shoulders of\ngiants\"](https://en.wikipedia.org/wiki/Standing_on_the_shoulders_of_giants)\ncould not be more true than it is in the Python community; this\nproject relies on many wonderful tools and libraries produced by the\nglobal open source software community, in addition to Python\nitself. I've listed many of them below, but if I've overlooked any\nplease do not be offended :-)\n\n* [Black](https://pypi.org/project/black)\n* [Hatch-Fancy-PyPI-Readme](https://pypi.org/project/hatch-fancy-pypi-readme)\n* [Hatch](https://pypi.org/project/hatch)\n* [Mypy](https://pypi.org/project/mypy)\n* [pyproject-fmt](https://pypi.org/project/pyproject-fmt)\n* [Pytest](https://pypi.org/project/pytest)\n* [Ruff](https://pypi.org/project/ruff)\n* [Towncrier](https://pypi.org/project/towncrier)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkpfleming%2Fjinjanator-plugin-format-toml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkpfleming%2Fjinjanator-plugin-format-toml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkpfleming%2Fjinjanator-plugin-format-toml/lists"}