Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Apr 2018 04:45:13 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r466531 - in head/textproc: . py-textfsm
Message-ID:  <201804050445.w354jDYA004539@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Thu Apr  5 04:45:13 2018
New Revision: 466531
URL: https://svnweb.freebsd.org/changeset/ports/466531

Log:
  New port: textproc/py-textfsm: Parses semi-structured text into Python tables
  
  PR:		227076
  Submitted by:	Kai <freebsd_ports@k-worx.org>

Added:
  head/textproc/py-textfsm/
  head/textproc/py-textfsm/Makefile   (contents, props changed)
  head/textproc/py-textfsm/distinfo   (contents, props changed)
  head/textproc/py-textfsm/pkg-descr   (contents, props changed)
Modified:
  head/textproc/Makefile

Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile	Thu Apr  5 04:36:58 2018	(r466530)
+++ head/textproc/Makefile	Thu Apr  5 04:45:13 2018	(r466531)
@@ -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

Added: head/textproc/py-textfsm/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/py-textfsm/Makefile	Thu Apr  5 04:45:13 2018	(r466531)
@@ -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>

Added: head/textproc/py-textfsm/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/py-textfsm/distinfo	Thu Apr  5 04:45:13 2018	(r466531)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1522335440
+SHA256 (textfsm-0.4.0.tar.gz) = 41b51501f5e0e4bd02dc521bee3565a95cc576fe6ebf3625d2fb2d32c241a32e
+SIZE (textfsm-0.4.0.tar.gz) = 38355

Added: head/textproc/py-textfsm/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/textproc/py-textfsm/pkg-descr	Thu Apr  5 04:45:13 2018	(r466531)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804050445.w354jDYA004539>