diff options
author | Yuri Victorovich <yuri@FreeBSD.org> | 2018-04-05 04:21:55 +0000 |
---|---|---|
committer | Yuri Victorovich <yuri@FreeBSD.org> | 2018-04-05 04:21:55 +0000 |
commit | b6231eced9ff1df7e4b7191929b7898c179e912c (patch) | |
tree | 6ec78f50b140758e974ca837c24abf7b2f9e02a0 /textproc | |
parent | 7e3fbd3fd1ada17b3e1c37106c74ce4028e5dc7f (diff) |
Notes
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/py-jtextfsm/Makefile | 18 | ||||
-rw-r--r-- | textproc/py-jtextfsm/distinfo | 3 | ||||
-rw-r--r-- | textproc/py-jtextfsm/pkg-descr | 22 |
4 files changed, 44 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index f1318a23e1fb..1bfb47d34f54 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1315,6 +1315,7 @@ SUBDIR += py-hyperestraier-python SUBDIR += py-hypua2jamo SUBDIR += py-jaxml + SUBDIR += py-jtextfsm SUBDIR += py-junit-xml SUBDIR += py-libtre SUBDIR += py-libxml2 diff --git a/textproc/py-jtextfsm/Makefile b/textproc/py-jtextfsm/Makefile new file mode 100644 index 000000000000..8941d900ac60 --- /dev/null +++ b/textproc/py-jtextfsm/Makefile @@ -0,0 +1,18 @@ +# $FreeBSD$ + +PORTNAME= jtextfsm +DISTVERSION= 0.3.1 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= freebsd_ports@k-worx.org +COMMENT= Smaller fork of py-textfsm, a parser for semi-structured text + +LICENSE= APACHE20 + +USES= python +USE_PYTHON= distutils autoplist +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/textproc/py-jtextfsm/distinfo b/textproc/py-jtextfsm/distinfo new file mode 100644 index 000000000000..89d58a8640ef --- /dev/null +++ b/textproc/py-jtextfsm/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1522337241 +SHA256 (jtextfsm-0.3.1.tar.gz) = bd3ae3538b6d744d1e148326c486b95bd3614ea14f15ddd15ca1e5a327e188f2 +SIZE (jtextfsm-0.3.1.tar.gz) = 10166 diff --git a/textproc/py-jtextfsm/pkg-descr b/textproc/py-jtextfsm/pkg-descr new file mode 100644 index 000000000000..f0e250a52cef --- /dev/null +++ b/textproc/py-jtextfsm/pkg-descr @@ -0,0 +1,22 @@ +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/jtextfsm |