Simple Template Toolkit
Simple templating for all your simple templating projects
Features
The following exported console script is available for use:
make-substitutions
insert-lines
Usage
from simple_template_toolkit import STTManager
tm = STTManager()
tm.make_substitutions(
template_file=template_file, # the template file containing your placeholder keys (e.g.: $;PARAM1$;)
outfile=outfile, # the file that should be written out
lookup=lookup # a dictionary contain placeholders for keys (e.g.: $;PARAM1$;) and corresponding values (e.g.: xyz) replace with
)
History
0.1.0 (2024-01-24)
First release on PyPI.
Metadata
Release files for simple-template-toolkit 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| simple_template_toolkit-0.2.1.tar.gz | 26.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simple_template_toolkit-0.2.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 51.2 kB
Release files / simple_template_toolkit-0.2.1.tar.gz
| Download URL | simple_template_toolkit-0.2.1.tar.gz |
|---|---|
| Size | 26.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b5d4ba9b25f28c064167e99620b1170e0ee28ba6562a6cb7af362a2e7cda3a1
|
|
BLAKE2b-256 checksum How to use checksums |
2520198a1d00e91bb370b5984b0b813b585369ba2c2bcb406973570f4d3e7bfe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / simple_template_toolkit-0.2.1-py2.py3-none-any.whl
| Download URL | simple_template_toolkit-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 24.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d902efccbee0ffe4bf5d02c7ebd1d03345f1aa94812c872a834f0702ca6701ff
|
|
BLAKE2b-256 checksum How to use checksums |
b7d37a76f4293732224b88ef2ef6cf9fb66d5e252aa809d9d93202a5315fdc8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|