{"id":13585339,"url":"https://github.com/mattrobenolt/jinja2-cli","last_synced_at":"2026-04-05T21:17:30.990Z","repository":{"id":3468930,"uuid":"4523552","full_name":"mattrobenolt/jinja2-cli","owner":"mattrobenolt","description":"CLI for Jinja2","archived":false,"fork":false,"pushed_at":"2025-09-02T15:42:15.000Z","size":75,"stargazers_count":579,"open_issues_count":35,"forks_count":188,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-12-10T04:57:29.396Z","etag":null,"topics":["cli","jinja2","python","toml","xml","yaml"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattrobenolt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2012-06-01T19:46:04.000Z","updated_at":"2025-12-05T06:22:26.000Z","dependencies_parsed_at":"2024-04-26T22:40:10.173Z","dependency_job_id":"fc21844f-1b99-406c-a0e4-ee7b8b9a5424","html_url":"https://github.com/mattrobenolt/jinja2-cli","commit_stats":{"total_commits":104,"total_committers":14,"mean_commits":7.428571428571429,"dds":"0.20192307692307687","last_synced_commit":"c540c4cd3566ce8608370b41656a978a07d0cf54"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/mattrobenolt/jinja2-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattrobenolt%2Fjinja2-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattrobenolt%2Fjinja2-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattrobenolt%2Fjinja2-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattrobenolt%2Fjinja2-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattrobenolt","download_url":"https://codeload.github.com/mattrobenolt/jinja2-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattrobenolt%2Fjinja2-cli/sbom","scorecard":{"id":627971,"data":{"date":"2025-08-11","repo":{"name":"github.com/mattrobenolt/jinja2-cli","commit":"679be53bf46ef1b7e8bc7f957e638620e67a544a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":3,"reason":"Found 9/29 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 2-Clause \"Simplified\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 11 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T07:01:11.107Z","repository_id":3468930,"created_at":"2025-08-21T07:01:11.107Z","updated_at":"2025-08-21T07:01:11.107Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31450287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T15:22:31.103Z","status":"ssl_error","status_checked_at":"2026-04-05T15:22:00.205Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","jinja2","python","toml","xml","yaml"],"created_at":"2024-08-01T15:04:53.001Z","updated_at":"2026-04-05T21:17:30.974Z","avatar_url":"https://github.com/mattrobenolt.png","language":"Python","readme":"# $ jinja2\n\nThe CLI for [Jinja2](https://jinja.palletsprojects.com/).\n\n```\n$ jinja2 template.j2 data.json\n$ curl -s http://api.example.com | jinja2 template.j2\n```\n\n## Install\n```\n$ uv tool install jinja2-cli\n$ pip install jinja2-cli\n```\n\n## Formats\nBuilt-in: JSON, INI, ENV, querystring, TOML (Python 3.11+)\n\nOptional formats via extras:\n```\n$ pip install jinja2-cli[yaml]\n$ pip install jinja2-cli[xml]\n$ pip install jinja2-cli[hjson]\n$ pip install jinja2-cli[json5]\n```\n\n## Features\n- Read data from files or stdin\n- Define variables inline with `-D key=value`\n- Custom Jinja2 extensions\n- **Import custom filters** - see [Custom Filters](#custom-filters) below\n- Full control over Jinja2 environment options\n\nRun `jinja2 --help` for all options, or see [docs/](docs/) for full documentation.\n\n## Custom Filters\n\nExtend Jinja2 with your own filters or use Ansible's extensive filter library:\n\n```bash\n# Use custom filters\n$ jinja2 template.j2 data.json -F myfilters\n\n# Use Ansible filters\n$ jinja2 template.j2 data.json -F ansible.plugins.filter.core\n```\n\nExample filter module:\n```python\n# myfilters.py\ndef reverse(s):\n    return s[::-1]\n\ndef shout(s):\n    return s.upper() + \"!\"\n```\n\nSee [docs/filters.md](docs/filters.md) for complete documentation and examples.\n\n## Used by\n- [Dangerzone](https://github.com/freedomofpress/dangerzone) by Freedom of the Press Foundation\n- [Elastic](https://github.com/elastic/logstash-docker) Docker images (Logstash, Kibana, Beats)\n- [ScyllaDB](https://github.com/scylladb/scylla-machine-image) CloudFormation templates\n- [800+ more](https://github.com/mattrobenolt/jinja2-cli/network/dependents) on GitHub\n\n## Available in\n[![PyPI](https://img.shields.io/pypi/v/jinja2-cli)](https://pypi.org/project/jinja2-cli/)\n[![Homebrew](https://img.shields.io/homebrew/v/jinja2-cli)](https://formulae.brew.sh/formula/jinja2-cli)\n[![nixpkgs](https://img.shields.io/badge/nixpkgs-jinja2--cli-blue)](https://search.nixos.org/packages?query=jinja2-cli)\n[![AUR](https://img.shields.io/aur/version/jinja2-cli)](https://aur.archlinux.org/packages/jinja2-cli)\n[![Alpine](https://img.shields.io/badge/Alpine-jinja2--cli-0D597F?logo=alpinelinux\u0026logoColor=fff)](https://pkgs.alpinelinux.org/package/edge/community/x86_64/jinja2-cli)\n\n## Learn more\n- [Jinja2 as a Command Line Application](https://thejeshgn.com/2021/12/07/jinja2-command-line-application/)\n- [Combining jinja2-cli with jq and environment variables](https://www.zufallsheld.de/2025/06/30/templating-jinja-cli)\n","funding_links":[],"categories":["General Purpose Preprocessor","Python"],"sub_categories":["Snippets Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattrobenolt%2Fjinja2-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattrobenolt%2Fjinja2-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattrobenolt%2Fjinja2-cli/lists"}