New port: textproc/py-textfsm: Parses semi-structured text into Python tables
PR: 227076 Submitted by: Kai <freebsd_ports@k-worx.org>
This commit is contained in:
parent
f1d46c4a3e
commit
b223666a53
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=466531
@ -1393,6 +1393,7 @@
|
||||
SUBDIR += py-syck
|
||||
SUBDIR += py-tabletext
|
||||
SUBDIR += py-terminaltables
|
||||
SUBDIR += py-textfsm
|
||||
SUBDIR += py-texttable
|
||||
SUBDIR += py-tinycss
|
||||
SUBDIR += py-toronado
|
||||
|
21
textproc/py-textfsm/Makefile
Normal file
21
textproc/py-textfsm/Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= textfsm
|
||||
DISTVERSION= 0.4.0
|
||||
CATEGORIES= textproc python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= freebsd_ports@k-worx.org
|
||||
COMMENT= Parses semi-structured text into Python tables
|
||||
|
||||
LICENSE= APACHE20
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
|
||||
|
||||
USES= python
|
||||
USE_PYTHON= distutils autoplist
|
||||
NO_ARCH= yes
|
||||
|
||||
.include <bsd.port.mk>
|
3
textproc/py-textfsm/distinfo
Normal file
3
textproc/py-textfsm/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1522335440
|
||||
SHA256 (textfsm-0.4.0.tar.gz) = 41b51501f5e0e4bd02dc521bee3565a95cc576fe6ebf3625d2fb2d32c241a32e
|
||||
SIZE (textfsm-0.4.0.tar.gz) = 38355
|
17
textproc/py-textfsm/pkg-descr
Normal file
17
textproc/py-textfsm/pkg-descr
Normal file
@ -0,0 +1,17 @@
|
||||
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).
|
||||
|
||||
WWW: https://github.com/google/textfsm
|
Loading…
Reference in New Issue
Block a user