Template Text Parser
TTP is a Python library for semi-structured text parsing using templates.
To save ones time on transforming raw text into structured data and beyond.
Regexes, regexes everywhere... but, dynamically formed out of TTP templates with added capabilities to simplify the process of getting desired outcome.
In essence TTP can help to:
Reference documentation for more information.
TTP Networktocode Slack channel
Collection of TTP Templates
Simple interfaces configuration parsing example
Code
…For this example lets say we want to parse BGP peerings output, but combine state with configuration data, at the end we want to get pretty looking text table printed to screen.
Code
…Feel free to submit an issue, report a bug or ask a question, feature requests are welcomed.
List of community resources:
No open issues yet, or sync has not completed.