{"id":19632496,"url":"https://github.com/metwork-framework/jinja2_shell_extension","last_synced_at":"2026-03-06T09:30:59.677Z","repository":{"id":33303553,"uuid":"153260189","full_name":"metwork-framework/jinja2_shell_extension","owner":"metwork-framework","description":"a jinja2 extension to add a filter to execute system/shell commands","archived":false,"fork":false,"pushed_at":"2025-05-21T22:04:35.000Z","size":83,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-21T23:20:50.707Z","etag":null,"topics":["autoreadme","github-actions","integration-level-3","jinja2","jinja2-extension"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metwork-framework.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"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}},"created_at":"2018-10-16T09:36:50.000Z","updated_at":"2025-05-21T22:04:38.000Z","dependencies_parsed_at":"2023-11-27T10:35:01.237Z","dependency_job_id":"11ef15ba-e747-4efd-b9a9-5bcec10175f5","html_url":"https://github.com/metwork-framework/jinja2_shell_extension","commit_stats":{"total_commits":83,"total_committers":9,"mean_commits":9.222222222222221,"dds":0.6746987951807228,"last_synced_commit":"07a068509dcd97f3b82b00c537aba14c627dffd2"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/metwork-framework/jinja2_shell_extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metwork-framework%2Fjinja2_shell_extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metwork-framework%2Fjinja2_shell_extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metwork-framework%2Fjinja2_shell_extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metwork-framework%2Fjinja2_shell_extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metwork-framework","download_url":"https://codeload.github.com/metwork-framework/jinja2_shell_extension/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metwork-framework%2Fjinja2_shell_extension/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259371167,"owners_count":22847530,"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":["autoreadme","github-actions","integration-level-3","jinja2","jinja2-extension"],"created_at":"2024-11-11T12:14:17.544Z","updated_at":"2026-03-06T09:30:59.617Z","avatar_url":"https://github.com/metwork-framework.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jinja2_shell_extension\n\n[//]: # (automatically generated from https://github.com/metwork-framework/github_organization_management/blob/master/common_files/README.md)\n\n**Status (master branch)**\n\n[![GitHub CI](https://github.com/metwork-framework/jinja2_shell_extension/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/metwork-framework/jinja2_shell_extension/actions?query=workflow%3ACI+branch%3Amaster)\n[![Maintenance](https://raw.githubusercontent.com/metwork-framework/resources/master/badges/maintained.svg)](https://github.com/metwork-framework/resources/blob/master/badges/maintained.svg)\n\n\n\n\n## What is it ?\n\nThis is a [jinja2](http://jinja.pocoo.org/) extension to execute system/shell\ncommands from a template.\n\n**WARNING: be sure to valid any string submitted to this filter as you can\nopen security holes with it**\n\n## Syntax\n\nThe syntax is `'full_command_with_args'|shell([die_on_error_boolean_flag], [encoding])`.\n\n## Example\n\n```python\n\nfrom jinja2 import Template, Environment\n\n# We load the extension in a jinja2 Environment\nenv = Environment(extensions=[\"jinja2_shell_extension.ShellExtension\"])\n\n# For the example, we use a template from a simple string\ntemplate = env.from_string(\"Thu, 12 Feb 2026 09:40:28 +0000\n\")\nresult = template.render()\n\n# example: result == \"Fri, 31 Jan 2020 13:35:56 +0100\"\n# [...]\n\n```\n\n\n\n\n\n\n## Contributing guide\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) file.\n\n\n\n## Code of Conduct\n\nSee [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) file.\n\n\n\n## Sponsors\n\n*(If you are officially paid to work on MetWork Framework, please contact us to add your company logo here!)*\n\n[![logo](https://raw.githubusercontent.com/metwork-framework/resources/master/sponsors/meteofrance-small.jpeg)](http://www.meteofrance.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetwork-framework%2Fjinja2_shell_extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetwork-framework%2Fjinja2_shell_extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetwork-framework%2Fjinja2_shell_extension/lists"}