aboutsummaryrefslogtreecommitdiff
path: root/textproc/py-jtextfsm
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2018-04-05 04:21:55 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2018-04-05 04:21:55 +0000
commitb6231eced9ff1df7e4b7191929b7898c179e912c (patch)
tree6ec78f50b140758e974ca837c24abf7b2f9e02a0 /textproc/py-jtextfsm
parent7e3fbd3fd1ada17b3e1c37106c74ce4028e5dc7f (diff)
downloadports-b6231eced9ff1df7e4b7191929b7898c179e912c.tar.gz
ports-b6231eced9ff1df7e4b7191929b7898c179e912c.zip
New port: textproc/py-jtextfsm: Smaller fork of py-textfsm, a parser for semi-structured text
PR: 227077 Submitted by: Kai <freebsd_ports@k-worx.org>
Notes
Notes: svn path=/head/; revision=466529
Diffstat (limited to 'textproc/py-jtextfsm')
-rw-r--r--textproc/py-jtextfsm/Makefile18
-rw-r--r--textproc/py-jtextfsm/distinfo3
-rw-r--r--textproc/py-jtextfsm/pkg-descr22
3 files changed, 43 insertions, 0 deletions
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