stringtemplate3

A wrapper for StringTemplate: a powerful template engine with strict model-view separation


License
Other
Install
pip install stringtemplate3==24.2.0

Documentation

StringTemplate3

StringTemplate3 provides a python3 implementation of https://github.com/antlr/stringtemplate4

StringTemplate3

Requirements

As this is a pure Python project it needs Python3.

Building

The following mamba environment was used.

mamba create -n st3
mamba install -c conda-forge python==3.11
mamba install -c conda-forge python-build twine pip pytest
mamba activate st3

Package managers

The two main package managers for Python are pip and conda. (I use a mamba variant of conda.)

Pip

build the package
python -m build --wheel

Before uploading anywhere the wheel file can be installed. .install the wheel locally

python -m pip install ./dist/stringtemplate3-*-py3-*.whl

Before uploading to the official site upload to the test repository.

publish the test package
python -m twine upload --repository testpypi dist/*

Publishing to the official repository.

publish the official package
python -m twine upload --repository pypi dist/*
Install
python -m pip install -i https://test.pypi.org/simple/ stringtemplate3
python -m pip install stringtemplate3

Conda

Note: handled in a separate project. Not yet implemented.

Install
mamba install stringtemplate3

Usage

This will be handled via conda-forge which requires a separate feedstock project.

Contributing

New contributors are always welcome! If you discover errors or omissions in the source code, documentation, or website content, please don’t hesitate to submit an issue or open a pull request with a fix.

Getting Help

Changelog