Overview of TTP (Template Text Parser)
masterTTP is a Python module designed for fast parsing of semi-structured text data using templates. While primarily developed for programmatic access to CLI output from networking devices, it can be used to parse any semi-structured text that exhibits distinctive repetition patterns.
In its simplest usage pattern, TTP requires two inputs:
- Data to parse: The raw semi-structured text.
- Parsing template: A template defining how to extract information.
It returns a structured representation of the extracted information. A single dataset can be parsed using multiple different templates.