Skip to main content

Command-line Text Transformer

Project description

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

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

pymtt-0.1.7.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

pymtt-0.1.7.macosx-10.6-intel.tar.gz (9.7 kB view details)

Uploaded Source

File details

Details for the file pymtt-0.1.7.tar.gz.

File metadata

  • Download URL: pymtt-0.1.7.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pymtt-0.1.7.tar.gz
Algorithm Hash digest
SHA256 b80c2fbcfcbc25a592c7f2c74487b0f81856a0110a3f4d4d5f82472dbe2e3469
MD5 4c01785bca736c716378516471aa442b
BLAKE2b-256 e4055345f0fbe53ffb897c53c8bb929a95de58d83987e26dea81e5bcafa9c88c

See more details on using hashes here.

File details

Details for the file pymtt-0.1.7.macosx-10.6-intel.tar.gz.

File metadata

File hashes

Hashes for pymtt-0.1.7.macosx-10.6-intel.tar.gz
Algorithm Hash digest
SHA256 f3b77d93c8de978a7943481479c5211be70e4f49c8496559f7262cb4487759df
MD5 3f744bd0a946b1a73985e784dbc537e3
BLAKE2b-256 0dd2c625d3e1d111f819af38e9ed348f098c24aa0fc256c8fef2392c075ea85e

See more details on using hashes here.

Supported by

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