jinja2-strcase
A python package for converting string case in jinja2 templates
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
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 · maintenance · safety
MIT (permissive) — 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.
last release 2020-06-21 (2245 days) · last repo commit 2023-09-26 · 8 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 774,083 downloads/mo, #5,097 on PyPI
Alternatives
Verify before relying
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- 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.
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 on this page. Verify before relying on it.
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
jinja2-strcase on PyPI
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 | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagejinja2 |
| Maintenance | Dormant 2,245 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 774,083 / month, #5,097 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy |
Evidence: jinja2_strcase-0.0.2-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “jinja2 string case conversion”
- jinja2-strcaseAdds string-case conversion filters to Jinja2 templates, enabling…
- humpsConverts strings to camelCase format, handling spaces, case…
- case-converterConverts strings between different naming conventions (camelCase,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Text Processing packages
A drop-in replacement for Python's standard `re` module that adds advanced regex features like nested sets, fuzzy matching, lookaround in conditionals, and full Unicode case-folding while maintaining backward compatibility.
pyparsing provides a library for building text parsers directly in Python code using composable grammar classes, handling quoted strings, whitespace variation, and embedded comments without regex or lex/yacc.
Install it if you need to parse text or define grammars programmatically.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Docutils converts plaintext documentation in reStructuredText format into multiple output formats including HTML, XML, and LaTeX using a modular processing system.
RapidFuzz provides fast fuzzy string matching using Levenshtein Distance and related metrics, implemented mostly in C++ with Python bindings for rapid similarity scoring and approximate string matching.
Install it if you need fuzzy string matching; it's a solid replacement for FuzzyWuzzy with better licensing and performance.
tinycss2 parses CSS strings into token and block objects, and generates CSS strings from those objects, following the CSS Syntax Level 3 specification without enforcing specific properties or values.
Install it if your project requires CSS tokenization or syntax manipulation.
See also jinja2-ansible-filters · textcase · jinja2-humanize-extension · jinja2-time · case-convert · jinja2_pluralize · camel-converter · pyhumps · cookiecutter · make