charms.templating.jinja2 
Helper for rendering Jinja2 templates with charms
Usage
from charms.templating.jinja2 import render
render('app.conf.j2', '/etc/app.conf', {
'my_var': 'my_val',
})
output = render(
'tmpl.j2',
tests={
'isnumeric': lambda s: s.isnumeric(),
})
output = render(
template='{{ config["my-opt"]|my_upper }}',
filters={
'my_upper': lambda s: s.upper(),
})
The full documentation is available at http://pythonhosted.org/charms.templating.jinja2/
Metadata
Release files for charms.templating.jinja2 1.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 |
|---|---|---|---|---|
| charms.templating.jinja2-1.0.2.tar.gz | 4.2 kB | Without provenance | Details for charms.templating.jinja2-1.0.2.tar.gz |
Release files / charms.templating.jinja2-1.0.2.tar.gz
| Download URL | charms.templating.jinja2-1.0.2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8193c6a1d40bdb66fe272c359b4e4780501c658acfaf2b1118c4230927815fe2
|
|
BLAKE2b-256 checksum How to use checksums |
6a797e2beeb4d5659134fca37a7e7ad4cad6aa10e9f4eb63106c74e4abf899c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for charms.templating.jinja2 1.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.