BSD Ports

textproc/py-textfsm 2.1.0 NetBSD

Template based state machine for parsing semi-formatted text

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
apache-2.0
Categories
textproc, python
Package size
70.0 KiB, 384.7 KiB installed

Description

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

TextFSM was developed internally at Google and released under the Apache 2.0 licence for the benefit of the wider community.

In the other systems

SystemPortVersion
NetBSDtextproc/py-textfsm2.1.0
FreeBSDtextproc/py-textfsm2.1.0
OpenBSDtextproc/py-textfsm2.1.0
DragonFlytextproc/py-textfsm1.1.3_2

Install

Binary package:

pkgin install py311-textfsm

From pkgsrc:

cd /usr/pkgsrc/textproc/py-textfsm && make install clean

Dependencies

Run dependencies 1

Configuration

No options to configure.

Service scripts
none
Flavors
py312-textfsm-2.1.0, py313-textfsm-2.1.0, py314-textfsm-2.1.0