Small template engine that replaces variables via dictionary values:
cat file.txt
"This is a {{variable}} in a {{string}}"
from coima import Template
t = Template({'variable':'word', 'string':'sentence'}, 'file.txt')
t.render()
u"This is a word in a sentence"
Syntax
No Python or code blocks are allowed, this is basically a dumb templating engine.
Variables should be a one word or 2 words together with an underscore. These are valid variables:
{{variable}} {{variable_one}}
Invalid variables are left ‘as is’ and left in the final rendered template.
Metadata
Release files for coima 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 |
|---|---|---|---|---|
| coima-0.0.2.tar.gz | 6.1 kB | Without provenance | Details for coima-0.0.2.tar.gz |
Release files / coima-0.0.2.tar.gz
| Download URL | coima-0.0.2.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aae5fa1a5bd4ae07073779ea362851b6c1a703536b59b8ac0f75a9ed1f4e49ca
|
|
BLAKE2b-256 checksum How to use checksums |
6c2cb15baa38afb76d24fa3b370ac06046ed21e5e71139b2ffe81092d8c4e4f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for coima 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.