From owner-svn-ports-head@freebsd.org Thu Apr 5 04:45:14 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8EAD0F884C8; Thu, 5 Apr 2018 04:45:14 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 418698796B; Thu, 5 Apr 2018 04:45:14 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3C8991DD9C; Thu, 5 Apr 2018 04:45:14 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w354jEv8004544; Thu, 5 Apr 2018 04:45:14 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w354jDYA004539; Thu, 5 Apr 2018 04:45:13 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201804050445.w354jDYA004539@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Thu, 5 Apr 2018 04:45:13 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r466531 - in head/textproc: . py-textfsm X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/textproc: . py-textfsm X-SVN-Commit-Revision: 466531 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2018 04:45:14 -0000 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 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 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