{"categories":[{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing"}],"enrichment":{"capability":"Provides a collection of Jinja2 template filters ported from Ansible, including encoding, hashing, path manipulation, JSON/YAML conversion, and regex operations, without requiring Ansible core.","skillfed_tags":["jinja2-extension","template-filters","ansible-compatible"],"use_cases":["Use it to port Ansible playbook templates to standalone Jinja2 rendering without Ansible as a runtime dependency.","Use it in cookiecutter templates to access Ansible-style filters for file path and data transformation during project scaffolding.","Use it to add base64, JSON, YAML, and regex filters to Jinja2 environments in configuration management or templating pipelines.","Use it to perform hashing and encoding operations (md5, sha1, b64encode) directly in templates without custom filter registration.","Use it in static site generators or documentation tools that use Jinja2 and need Ansible-compatible filter semantics."],"what_it_does":"This package extracts and ports Ansible's Jinja2 template filters into a standalone library, so you can use Ansible-style filtering in any Jinja2 template without installing the full Ansible framework. It includes filters for common operations: base64 encoding/decoding, file path manipulation (basename, dirname, realpath), hashing (md5, sha1, checksum), JSON and YAML conversion, regex operations, and utility filters like type checking and UUID generation. A few filters with heavy Ansible dependencies (combine, get_encrypted_password, dict2items, items2dict) are excluded, and two filters (groupby, random) are prefixed with ans_ to avoid collisions with Jinja2 builtins.\n\nThe package is a thin extension layer that registers these filters as a Jinja2 extension, so you load it by passing AnsibleCoreFiltersExtension to your Environment. It depends only on Jinja2 and PyYAML, making it lightweight to add to projects that already use those libraries. However, the project has been abandoned since 2022-06-30 with no maintenance activity, so compatibility with newer Jinja2 releases is not guaranteed beyond what was tested at version 1.3.2.","worth_installing":"Yes, if you need Ansible-style Jinja2 filters and can accept the GPL3 copyleft license. The package is lightweight, has low install friction, and works well for template-heavy projects. However, do not install if your project is proprietary or closed-source (GPL3 is a blocker), or if you require active maintenance and compatibility updates\u2014the project is abandoned and has not been updated since 2022-06-30. Test compatibility with your current Jinja2 version before relying on it in production."},"id":"jinja2-ansible-filters","links":{"html":"https://skillfed.io/packages/jinja2-ansible-filters","md":"https://skillfed.io/packages/jinja2-ansible-filters.md","pypi":"https://pypi.org/project/jinja2-ansible-filters/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2022-06-30","license_spdx":null,"license_treatment":"copyleft","name":"jinja2-ansible-filters","python_support":"unspecified","summary":"A port of Ansible's jinja2 filters without requiring ansible core."},"popularity":{"monthly_downloads":2061330,"position":3330,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.3.2"}
