mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
de8f1068e4
* Update the WWW field to point to the valid repository name Reported by: Repology Approved by: mentors (implicit)
23 lines
1.1 KiB
Plaintext
23 lines
1.1 KiB
Plaintext
Python module which implements a template based state machine for parsing
|
|
semi-formatted text. Originally developed to allow programmatic access to
|
|
information returned from the command line interface (CLI) of networking
|
|
devices.
|
|
|
|
The engine takes two inputs - a template file, and text input (such as command
|
|
responses from the CLI of a device) and returns a list of records that contains
|
|
the data parsed from the text.
|
|
|
|
A template file is needed for each uniquely structured text input. Some examples
|
|
are provided with the code and users are encouraged to develop their own.
|
|
|
|
By developing a pool of template files, scripts can call TextFSM to parse useful
|
|
information from a variety of sources. It is also possible to use different
|
|
templates on the same data in order to create different tables (or views).
|
|
|
|
Note: This package was originally a fork of TextFSM because TextFSM had no
|
|
support for Python3 at that time (that's not the case anymore, btw).
|
|
Nevertheless this package is somewhat smaller compared to TextFSM and is used
|
|
in some projects.
|
|
|
|
WWW: https://github.com/jonathanslenders/textfsm
|