Skip to main content

PyMTT

PyMTT is a command-line text transformer. It allows you to render Jinja2 templates using context created from pure Python modules or shell environment variables. Primary usage is config generation for deployment.

PyMTT was inspired by Oleg Mamontov’s MTT but uses Python, not Perl.

Example usage

export DJANGO_SETTINGS_MODULE=settings_test
pymtt -e -d -b config.py ~/template.proto ~/template

This command creates context from settings_test Django module (-d switch), overwrites it with config.py and finally overwrites context with environment variables if any (-e switch). Then uses context to render template out of template.proto.

Installation

pip install pymtt

Release files for pymtt 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymtt 0.1.9
File Size Uploaded
pymtt-0.1.9.tar.gz 7.5 kB Details

Release files / pymtt-0.1.9.tar.gz

Download URL pymtt-0.1.9.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3ccf712dd218f42c375e0926f84ec0881dd829468a7544fc281f4923d0f9b881
BLAKE2b-256 checksum
How to use checksums
90e0d9f2fa0fc94ed3c6ffeeb929b78091b2174b67bcfafc0b7847f24f24e319
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.9 This release

1 release file

0.1.8

1 release file

0.1.7

2 release files

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page