--- id: jinja2-strcase version: "0.0.2" license: MIT license_treatment: permissive maintenance: dormant --- # jinja2-strcase — A python package for converting string case in jinja2 templates License: permissive · Maintenance: dormant · Downloads: 774.1K/mo ## What it is and what it does jinja2-strcase is a Jinja2 extension that brings string-case conversion utilities into template rendering. It ports the Go strcase library to Python, exposing filters like to_snake, to_camel, to_kebab, and their screaming variants (uppercase versions) for use directly in Jinja2 templates and cookiecutter projects. The package is a pure-Python wheel with only jinja2 as a runtime dependency, making installation straightforward. The extension is designed for template authors who need to transform string case during rendering—for example, converting user input or variable names into different naming conventions without leaving the template layer. It supports both Python 2 and Python 3 (though classifiers list versions up to 3.8), and carries an MIT license. However, the package is dormant: the last release was 2020-06-21 and the repository has seen no commits since 2023-09-26, so compatibility with recent Jinja2 or Python versions is unverified. Use it for: - Convert variable names to snake_case in Jinja2 templates for code generation or configuration files. - Transform user-provided strings to camelCase or kebab-case within cookiecutter templates during project scaffolding. - Generate API field names in different case conventions from a single template source. - Normalize naming conventions in template-driven documentation or code comment generation. - Apply case transformations to identifiers in dynamic template rendering without post-processing. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Adds string-case conversion filters to Jinja2 templates, enabling conversions like snake_case, kebab-case, and camelCase within template rendering. Yes, if you are actively using Jinja2 or cookiecutter and need string-case conversion filters in templates. The package is lightweight, carries no security vulnerabilities, and has a permissive license. However, be aware that it is dormant and untested against modern Jinja2 versions—verify compatibility with your environment before relying on it in production. ## Install pip install jinja2-strcase uv add jinja2-strcase poetry add jinja2-strcase ## Installing jinja2-strcase Before you install: Low friction; pure Python wheel with only jinja2 as a runtime dependency. Maintenance is dormant—last release was 2020-06-21 and the repository has not been updated since 2023-09-26, so expect no active support for newer Jinja2 versions or Python releases. License in practice: MIT license is permissive; you may use, modify, and distribute this package freely with minimal restrictions, making it suitable for both open-source and commercial projects. Quickstart: from jinja2 import Environment env = Environment(extensions=['jinja2_strcase.StrcaseExtension']) template = env.from_string("{{ 'Any kind of string' | to_snake }}") print(template.render()) # Output: any_kind_of_string Verify before relying: - Whether the package remains compatible with current Jinja2 versions, given the last release was in 2020 and no updates since 2023. - Support status for Python versions beyond 3.8, which was the latest listed in classifiers at release time. ## Package facts - License: MIT (permissive) - Python support: unspecified - Install friction: low - Maintenance: dormant - Downloads: 774.1K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags jinja2 string case conversion, template case filters, snake case camel case templates, jinja2 text transformation, cookiecutter string formatting, jinja2 extension filters, case conversion filters, jinja2-extension, template-utilities, cookiecutter [View on SkillFed](https://skillfed.io/packages/jinja2-strcase) · [View on PyPI](https://pypi.org/project/jinja2-strcase/)