{"id":21173690,"url":"https://github.com/diginc/jinja-recurse","last_synced_at":"2025-10-14T19:13:46.648Z","repository":{"id":46563953,"uuid":"244806482","full_name":"diginc/Jinja-Recurse","owner":"diginc","description":"Jinja Recursive Templating for the CLI","archived":false,"fork":false,"pushed_at":"2022-12-26T21:40:17.000Z","size":77,"stargazers_count":1,"open_issues_count":3,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-25T14:56:23.851Z","etag":null,"topics":["cli","hacktoberfest","jinja","template"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diginc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-04T04:23:55.000Z","updated_at":"2021-10-05T17:44:36.000Z","dependencies_parsed_at":"2023-01-31T02:01:12.994Z","dependency_job_id":null,"html_url":"https://github.com/diginc/Jinja-Recurse","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/diginc/Jinja-Recurse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diginc%2FJinja-Recurse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diginc%2FJinja-Recurse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diginc%2FJinja-Recurse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diginc%2FJinja-Recurse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diginc","download_url":"https://codeload.github.com/diginc/Jinja-Recurse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diginc%2FJinja-Recurse/sbom","scorecard":{"id":341915,"data":{"date":"2025-08-11","repo":{"name":"github.com/diginc/Jinja-Recurse","commit":"987b22b95edcc9eb025ca05e4791ff76d6a60db4"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Code-Review","score":3,"reason":"Found 3/8 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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/diginc/Jinja-Recurse/python-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/diginc/Jinja-Recurse/python-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-test.yaml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/diginc/Jinja-Recurse/python-test.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-test.yaml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/diginc/Jinja-Recurse/python-test.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-test.yaml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/diginc/Jinja-Recurse/python-test.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-test.yaml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/diginc/Jinja-Recurse/python-test.yaml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:24","Warn: pipCommand not pinned by hash: .github/workflows/python-test.yaml:21","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 pipCommand dependencies pinned"],"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-publish.yml:1","Warn: no topLevel permission defined: .github/workflows/python-test.yaml:1","Info: no jobLevel write permissions found"],"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT 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 'master'"],"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 26 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"}},{"name":"Vulnerabilities","score":0,"reason":"20 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6","Warn: Project is vulnerable to: PYSEC-2024-230 / GHSA-248v-346w-9cwc","Warn: Project is vulnerable to: PYSEC-2022-42986 / GHSA-43fp-rhv2-5gv8","Warn: Project is vulnerable to: PYSEC-2023-135 / GHSA-xqr8-7jwr-rhp7","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: PYSEC-2021-66 / GHSA-g3rq-g295-4j3m","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h","Warn: Project is vulnerable to: PYSEC-2022-42969","Warn: Project is vulnerable to: PYSEC-2021-142 / GHSA-8q59-q68h-6hv4","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2023-192 / GHSA-v845-jxx5-vc9f","Warn: Project is vulnerable to: PYSEC-2022-43017 / GHSA-qwmp-2cf2-g9g6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T06:06:23.089Z","repository_id":46563953,"created_at":"2025-08-18T06:06:23.089Z","updated_at":"2025-08-18T06:06:23.089Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279020649,"owners_count":26086895,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"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":["cli","hacktoberfest","jinja","template"],"created_at":"2024-11-20T16:48:45.882Z","updated_at":"2025-10-14T19:13:46.613Z","avatar_url":"https://github.com/diginc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jinjarecurse CLI tool\n_________________\n![PyPI](https://img.shields.io/pypi/v/jinjarecurse?color=blue)\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/diginc/jinja-recurse/Upload%20Python%20Package)\n![GitHub](https://img.shields.io/github/license/diginc/jinja-recurse)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/jinjarecurse)\n_________________\n\nJinja Recursive Templating for the CLI.  Recursively template one file or many\nfolders of many files like a config management languages allow, without the\nwhole config management language.  Useful if you're switching from managing an\napplication from config management to just docker and need some simple\ntemplating logic.\n\n## Installation\n\n```\npip install jinjarecurse\n```\n\n## Example Usage\n\n```\n$ jinjarecurse --help\n jinjarecurse (CLI)\n\nUsage:\n    jinjarecurse --vars=VARS_FILE --input=INPUT_PATH --output=OUTPUT_PATH\n\nOptions:\n    -v \u003cfile\u003e, --vars   \u003cfile\u003e\n    -i \u003cfile\u003e, --input  \u003cfile\u003e\n    -o \u003cfile\u003e, --output \u003cfile\u003e\n```\n\n### Single file\n\nGiven a config file containing your variables e.g. `vars.yaml`:\n\n```\n#comment: not available\nroot: /\nnumber: 1\ndictionary:\n    street: 123 North Ave\n    city: New York\n    state: New York\nlist:\n    - ABC\n    - DEF\n    - HJK\nlayer_1:\n    layer_2:\n        layer_3: last\n```\n\nAnd an input file jinja2 template e.g. `i_file`:\n\n```\n# Top level\n{{root}}\n{{number}}\n{{dictionary}}\n{{list}}\n{{layer_1}}\n\n# Nested data\n\n{{dictionary.street}}\n{{dictionary.city}}\n{{dictionary.state}}\n{{layer_1.layer_2.layer_3}}\n```\n\nYou can populate it and specify an output filepath e.g. `o_file`:\n\n```\n$ jinjarecurse -v example/vars.yaml -i example/i_file -o example/o_file\nWARNING: example/o_file (output) exists and any conflicting files will be overwritten\nWriting from example/i_file to example/o_file\n```\n\nContents of the output file e.g. `o_file`:\n\n```\n# Top level\n/\n1\n{'street': '123 North Ave', 'city': 'New York', 'state': 'New York'}\n['ABC', 'DEF', 'HJK']\n{'layer_2': {'layer_3': 'last'}}\n\n# Nested data\n\n123 North Ave\nNew York\nNew York\nlast\n```\n\n### Directory\n\nYou can also template an entire directory e.g. `i_dir` at once. Note the\noutput files in the output directory will maintain the filenames from the\ninput directory:\n\n```\n$ jinjarecurse -v example/vars.yaml -i example/i_dir -o example/o_dir\nWriting from example/i_dir/i_file to example/o_dir/i_file\nWriting from example/i_dir/i_file_1 to example/o_dir/i_file_1\nWriting from example/i_dir/i_file_2 to example/o_dir/i_file_2\n```\n\n## Tests\n\nTo run the unit tests, first install the dependencies:\n\n```\n$ pipenv install --dev .\n```\n\nThen invoke pytest:\n\n```\n$ pipenv run py.test -vvvs\n```\n\n## Changelog\n\nPlease see the [Releases](https://github.com/diginc/Jinja-Recurse/releases)\nand [CHANGELOG.md](https://github.com/diginc/Jinja-Recurse/blob/master/CHANGELOG.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiginc%2Fjinja-recurse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiginc%2Fjinja-recurse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiginc%2Fjinja-recurse/lists"}