Skip to main content

Template Text Parser

Project description

Downloads PyPI status PyPI versions Documentation status

Template Text Parser

TTP is a Python library that allows parsing of semi-structured text data using templates relying on Python built-in regular expression module and XML Etree to structure templates. TTP was mainly developed to enable programmatic access to data produced by CLI of networking devices, however, it can be used to parse any semi-structured text that contains distinctive repetition patterns.

In the simplest case TTP takes two files as an input - data that needs to be parsed and template, returning results structure that contains extracted information.

Same data can be parsed by several templates producing results accordingly, templates are easy to create and users encouraged to write their own TTP templates, in addition TTP docs shipped with a set of template examples applicable for parsing CLI output of major network equipment.

Reference documentation for more information.

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

ttp-0.2.0.tar.gz (40.4 kB view hashes)

Uploaded Source

Built Distributions

ttp-0.2.0-py3.7.egg (119.1 kB view hashes)

Uploaded Source

ttp-0.2.0-py2.7.egg (117.1 kB view hashes)

Uploaded Source

Supported by

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