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 details)

Uploaded Source

Built Distributions

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

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

Uploaded Egg

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

Uploaded Egg

File details

Details for the file ttp-0.2.0.tar.gz.

File metadata

  • Download URL: ttp-0.2.0.tar.gz
  • Upload date:
  • Size: 40.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0

File hashes

Hashes for ttp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b71b6e4405b53439419cfe33d3e398c5e4aeff8aae32525711fcf12cfb969112
MD5 4194c928503fa892866cd106b8a87b41
BLAKE2b-256 301377302d7147edef491e9d7b28fd5036f7de200ab1bf2644edda5e3c14a478

See more details on using hashes here.

File details

Details for the file ttp-0.2.0-py3.7.egg.

File metadata

  • Download URL: ttp-0.2.0-py3.7.egg
  • Upload date:
  • Size: 119.1 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0

File hashes

Hashes for ttp-0.2.0-py3.7.egg
Algorithm Hash digest
SHA256 daa654046d3148de1bb0f6bad760eda0ca72ec2576f455dd105565e5cea40c22
MD5 4a77c86d12058bd3ce2149812a7d7db8
BLAKE2b-256 b380d7cf22b1bbadb3ae76e17950c316ec25f9eec309d52ef25fb6e06f8e4b78

See more details on using hashes here.

File details

Details for the file ttp-0.2.0-py2.7.egg.

File metadata

  • Download URL: ttp-0.2.0-py2.7.egg
  • Upload date:
  • Size: 117.1 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0

File hashes

Hashes for ttp-0.2.0-py2.7.egg
Algorithm Hash digest
SHA256 eb18ce545d413e5b238e5462c18acfdd38992055fab76d661d53c4bc43ee32a5
MD5 d84395f9e72cb0b4f43156cabeca89ac
BLAKE2b-256 ec3bac85ecd4f7cf49202fff887760e61542b2e581809d163e77e2432df60e8c

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