Simple templating for all your simple templating projects
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_template_toolkit-0.2.1.tar.gz.
File metadata
- Download URL: simple_template_toolkit-0.2.1.tar.gz
- Upload date:
- Size: 26.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b5d4ba9b25f28c064167e99620b1170e0ee28ba6562a6cb7af362a2e7cda3a1
|
|
| MD5 |
23df827eda69b105fa74d3fdb51d2c63
|
|
| BLAKE2b-256 |
2520198a1d00e91bb370b5984b0b813b585369ba2c2bcb406973570f4d3e7bfe
|
File details
Details for the file simple_template_toolkit-0.2.1-py2.py3-none-any.whl.
File metadata
- Download URL: simple_template_toolkit-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d902efccbee0ffe4bf5d02c7ebd1d03345f1aa94812c872a834f0702ca6701ff
|
|
| MD5 |
485b4081c562530c50e8ff12388ee7c2
|
|
| BLAKE2b-256 |
b7d37a76f4293732224b88ef2ef6cf9fb66d5e252aa809d9d93202a5315fdc8e
|