BSD Ports

textproc/py-ntc_templates 1.5.0 NetBSD

Repository of TextFSM Templates for Network Devices

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
mit
Categories
textproc, python
Package size
113.7 KiB, 489.8 KiB installed

Description

Repository of TextFSM Templates for Network Devices, and Python wrapper for TextFSM's CliTable.

TextFSM is a project built by Google that takes CLI string output and passes each line through a series of regular expressions until it finds a match. The regular expressions use named capture groups to build a text table out of the significant text. The names of the capture groups are used as column headers, and the captured values are stored as rows in the table.

This project provides a large collection of TextFSM Templates (text parsers) for a variety of Networking Vendors. In addition to the templates, there is a function that will convert the CLI output into a CliTable object; the resulting text table is converted into a list of dictionaries mapping the column headers with each row in the table.

Install

Binary package:

pkgin install py311-ntc_templates

From pkgsrc:

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

Packages

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

RepositoryVersion
NetBSD 10.1 x86_641.5.0
NetBSD 10.1 aarch641.5.0
SmartOS / illumos x86_641.5.0
macOS 15 arm641.5.0

Dependencies

Run dependencies 2

No port depends on this one.

Configuration

No options to configure.

Service scripts
none
Flavors
py312-ntc_templates-1.5.0, py313-ntc_templates-1.5.0, py314-ntc_templates-1.5.0