Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simple_template_toolkit-0.2.1.tar.gz (26.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simple_template_toolkit-0.2.1-py2.py3-none-any.whl (24.4 kB view details)

Uploaded Python 2Python 3

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

Hashes for simple_template_toolkit-0.2.1.tar.gz
Algorithm Hash digest
SHA256 0b5d4ba9b25f28c064167e99620b1170e0ee28ba6562a6cb7af362a2e7cda3a1
MD5 23df827eda69b105fa74d3fdb51d2c63
BLAKE2b-256 2520198a1d00e91bb370b5984b0b813b585369ba2c2bcb406973570f4d3e7bfe

See more details on using hashes here.

File details

Details for the file simple_template_toolkit-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for simple_template_toolkit-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d902efccbee0ffe4bf5d02c7ebd1d03345f1aa94812c872a834f0702ca6701ff
MD5 485b4081c562530c50e8ff12388ee7c2
BLAKE2b-256 b7d37a76f4293732224b88ef2ef6cf9fb66d5e252aa809d9d93202a5315fdc8e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page