{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/5"}],"enrichment":{"capability":"TTP is a Python library for parsing semi-structured text into structured data using template-based regex matching, with built-in functions for processing and transforming results.","skillfed_tags":["text-extraction","network-automation","template-parsing"],"use_cases":["Parse network device configuration and state outputs (BGP, interfaces, routing) into structured JSON or dictionaries for automation workflows.","Extract and combine data from multiple command outputs by correlating results across parsing groups using lookup functions.","Transform unstructured log files or text reports into tabular or hierarchical formats for analysis or storage in databases.","Build reusable parsing templates for repetitive text extraction tasks without writing custom regex code for each variation.","Process CLI output from infrastructure tools to feed structured data into downstream systems or APIs."],"what_it_does":"TTP is a template-driven text parser that converts unstructured or semi-structured text into hierarchical structured data. It works by dynamically generating regexes from user-defined templates with placeholder syntax, then matching and extracting data from input text. The library includes built-in functions for processing matches on-the-fly, combining results into arbitrary hierarchies, and formatting output for storage or further processing.\n\nThe package is designed for scenarios where raw text output\u2014such as network device configurations, command outputs, or log files\u2014needs to be transformed into machine-readable formats. It handles multi-level nesting, lookups across parsing groups, and output formatting (including tabular display), making it particularly suited for network automation and data extraction tasks where regex alone would be tedious to maintain.","worth_installing":"Yes. TTP is worth installing for any project requiring semi-structured text parsing. It has zero runtime dependencies, low install friction, active maintenance, no known vulnerabilities, and a permissive MIT license. The template-based approach reduces boilerplate compared to hand-written regex, and the library's built-in processing functions handle common transformation tasks. Best fit for network automation, log parsing, and configuration extraction workflows."},"id":"ttp","links":{"html":"https://skillfed.io/packages/ttp","md":"https://skillfed.io/packages/ttp.md","pypi":"https://pypi.org/project/ttp/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-03-21","license_spdx":null,"license_treatment":"permissive","name":"ttp","python_support":"supports_current","summary":"Template Text Parser"},"popularity":{"monthly_downloads":479568,"position":6433,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.10.1"}
