8000 GitHub - tobiasjohanssonsdnit/ttp: Template Text Parser
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tobiasjohanssonsdnit/ttp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Downloads PyPI versions Documentation status

Template Text Parser

TTP is a Python library for parsing semi-structured text data using templates.

Why?

Every time questions arise on how many devices has blob X configured or how many interface has QoS policy applied or to find IP overlaps in the network etc., etc., for those who write custom scripts to answer these questions, spending hours putting fancy regexes together and learning how to use specialized libraries to prepare, parse and process text data to transform it in a format that they can make use of - have a look at TTP, it can help with most of it.

How?

Regexes, regexes everywhere... but dynamically formed out of TTP templates with added capabilities to streamline process of getting desired outcome from raw text data.

What?

In essence TTP can help to:

  • Prepare, sort and load text data for parsing
  • Parse text using regexes dynamically derived from templates
  • Process matches on the fly using broad set of built-in or custom convenience functions
  • Combine match results in a structure with arbitrary hierarchy
  • Transform results in desired format to ease consumption by humans or machines
  • Return resulted data to certain destinations for storage or further processing

Reference documentation for more information.

About

Template Text Parser

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%
0