TTP (Template Text Parser)

term

programmingnetworking

Kept in this browser · My desk

A Python module that parses semi-structured text with templates that look like the text itself, with the variable parts marked between double curly brackets.

It suits configurations, whose nesting its groups follow, and offers built-in patterns such as IP and ORPHRASE. Templates can carry Python code in macro tags, which TTP loads with exec, so its documentation warns that templates from untrusted sources are unsafe: review a TTP template as you would review code.

Also known as: template text parser, ttp templates, ttp parser

← Back to T Back to the glossary