TextFSM

repository·master·Indexed 22 days ago

https://github.com/google/textfsm

A Python-based state machine engine used to parse semi-formatted text into structured data using templates. It is primarily used to programmatically extract machine-readable records from unstructured or semi-structured text, such as CLI outputs from networking equipment.

Tokens
169
Snippets
0
Records
1
Agent score
29%

What's inside textfsm

  1. What is TextFSM?

    master

    TextFSM is a Python module that implements a template-based state machine designed to parse semi-formatted text. It is primarily used to programmatically extract structured data from unstructured or semi-structured text, such as command-line interface (CLI) outputs from networking devices.

    The engine operates by taking two inputs:

    1. A template file: A file defining the state machine logic and data structures for a specific text format.
    2. Text input: The raw text (e.g., CLI responses) to be parsed.

    It returns a list of records containing the parsed data. You can use different templates on the same input data to generate different structured views or tables.