BSD Ports

textproc/py-textfsm 2.1.0 FreeBSD

Parses semi-structured text into Python tables

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
APACHE20
Categories
textproc, python
Package size
68.8 KiB, 367.0 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).

In the other systems

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

Install

Binary package:

pkg install py312-textfsm

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-textfsm>0:textproc/py-textfsm

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest2.1.02.1.01.1.31.1.3_22.1.0
FreeBSD:14:quarterly2.1.02.1.0n/a1.1.3_22.1.0
FreeBSD:15:latest2.1.02.1.0n/a1.1.3_22.1.0
FreeBSD:15:quarterly2.1.02.1.0n/an/an/a
FreeBSD:16:latest2.1.02.1.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

The full lists below include those, and their dependencies in turn.

Build dependencies 16
Run dependencies 7

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
textfsm-2.1.0.tar.gz5548645c18ff2b7c90163dfdff7e20d3f482514cc7aac26bc2547744e79dfa761e458
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.