jinja2-strcase
A python package for converting string case in jinja2 templates (including cookiecutter).
It is a port of the go package strcase
Installation
jinja2-strcase is available for download from PyPI via pip:
$ pip install jinja2-strcase
Example
from jinja2 import Environment
env = Environment(extensions=['jinja2_strcase.StrcaseExtension'])
# This will convert 'Any kind of string' -> 'any_kind_of_string'
template = env.from_string("{% 'Any kind of string' | to_snake }")
template.render()
| Function | Result |
|---|---|
to_snake |
any_kind_of_string |
to_screaming_snake |
ANY_KIND_OF_STRING |
to_kebab |
any-kind-of-string |
to_screaming_kebab |
ANY-KIND-OF-STRING |
to_camel |
AnyKindOfString |
to_lower_camel |
anyKindOfString |
Metadata
Release files for jinja2-strcase 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jinja2-strcase-0.0.2.tar.gz | 2.9 kB | Without provenance | Details for jinja2-strcase-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jinja2_strcase-0.0.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for jinja2_strcase-0.0.2-py2.py3-none-any.whl |
Total release size: 6.8 kB
Release files / jinja2-strcase-0.0.2.tar.gz
| Download URL | jinja2-strcase-0.0.2.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d90c37f7bd40d345aacc8f78b087f66e6c5aa4c968ab23a791573fcf756c3379
|
|
BLAKE2b-256 checksum How to use checksums |
6f87723a3da34957c135f4274570bb769a47cd4b5e0fc008fc31ea7cb8aefd87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
|
Release files / jinja2_strcase-0.0.2-py2.py3-none-any.whl
| Download URL | jinja2_strcase-0.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e3067062f6158cd836ab495f805fc0d1d83cf92049e180509b004db86f6b745c
|
|
BLAKE2b-256 checksum How to use checksums |
fa3f821f2adeb240ffca16a3f89f56aa3733a99574a023e02ed31446bbdf4f61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
|
Security for jinja2-strcase 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.