{"id":22326467,"url":"https://github.com/thecodesmith/j2","last_synced_at":"2026-07-03T17:31:02.177Z","repository":{"id":53532240,"uuid":"201964550","full_name":"thecodesmith/j2","owner":"thecodesmith","description":"Minimalist Jinja2 CLI","archived":false,"fork":false,"pushed_at":"2024-01-11T19:04:38.000Z","size":63,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T07:32:39.922Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thecodesmith.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-12T16:07:24.000Z","updated_at":"2021-12-30T15:46:48.000Z","dependencies_parsed_at":"2025-01-31T07:29:16.017Z","dependency_job_id":"4572ab0b-585e-4cee-a294-6fbb691abb8c","html_url":"https://github.com/thecodesmith/j2","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodesmith%2Fj2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodesmith%2Fj2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodesmith%2Fj2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodesmith%2Fj2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodesmith","download_url":"https://codeload.github.com/thecodesmith/j2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245598317,"owners_count":20641884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-12-04T02:17:48.506Z","updated_at":"2025-10-30T11:26:54.395Z","avatar_url":"https://github.com/thecodesmith.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# J2 - the minimalist Jinja2 CLI\n\n## Inspiration\n\nI wanted a simple CLI for Jinja2 that operated similarly to Helm:\n* Render a template from a file\n* Pass custom values from a yaml file\n* Override custom values directly on the command line\n* Allow custom filters to be provided from a file\n\nThis CLI aims to provide these features in the simplest way possible.\n\n## Usage\n\n    ❯ j2 --help\n    a minimalist Jinja2 CLI\n\n    usage: j2 [-h] [--values [value.yaml]] [--set my.value=42]\n              template\n\n    positional arguments:\n      template              Template file to process\n\n    optional arguments:\n      -h, --help            show this help message and exit\n      --values [value.yaml]\n                            Input values file path; \"-\" to use stdin\n      --filters [filters.py]\n                            Custom Jinja2 filters from Python file. Loads all\n                            top-level functions and registers them as filters.\n      --set my.value=42     Set values on the command line. Can be used multiple\n                            times.\n\n## Docker\n\nThe `j2` CLI is available as a Docker image hosted on Docker Hub:\nhttps://hub.docker.com/r/thecodesmith/j2.\n\nRun `j2` locally in Docker with an alias like this:\n\n    alias j2='docker run -it --rm -w /app -v $PWD:/app thecodesmith/j2 j2'\n\n## Examples\n\nBasic usage:\n\n    j2 manifest.j2 --values values.yaml \u003e manifest.yaml\n\nWith custom values overridden on the command line:\n\n    j2 manifest.j2 --values values.yaml --set app.namespace=foo \u003e manifest.yaml\n\nWith custom filters defined in a file:\n\n    j2 manifest.j2 --filters filters.py \u003e manifest.yaml\n\nWhere the filters file looks like this:\n\n```python\ndef parentheses(value):\n    \"\"\" Usage: {{ var | parentheses }} \"\"\"\n    return '(' + value + ')'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodesmith%2Fj2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodesmith%2Fj2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodesmith%2Fj2/lists"}