mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
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>
This commit is contained in:
parent
7e3fbd3fd1
commit
b6231eced9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=466529
4 changed files with 44 additions and 0 deletions
|
@ -1315,6 +1315,7 @@
|
||||||
SUBDIR += py-hyperestraier-python
|
SUBDIR += py-hyperestraier-python
|
||||||
SUBDIR += py-hypua2jamo
|
SUBDIR += py-hypua2jamo
|
||||||
SUBDIR += py-jaxml
|
SUBDIR += py-jaxml
|
||||||
|
SUBDIR += py-jtextfsm
|
||||||
SUBDIR += py-junit-xml
|
SUBDIR += py-junit-xml
|
||||||
SUBDIR += py-libtre
|
SUBDIR += py-libtre
|
||||||
SUBDIR += py-libxml2
|
SUBDIR += py-libxml2
|
||||||
|
|
18
textproc/py-jtextfsm/Makefile
Normal file
18
textproc/py-jtextfsm/Makefile
Normal file
|
@ -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>
|
3
textproc/py-jtextfsm/distinfo
Normal file
3
textproc/py-jtextfsm/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
TIMESTAMP = 1522337241
|
||||||
|
SHA256 (jtextfsm-0.3.1.tar.gz) = bd3ae3538b6d744d1e148326c486b95bd3614ea14f15ddd15ca1e5a327e188f2
|
||||||
|
SIZE (jtextfsm-0.3.1.tar.gz) = 10166
|
22
textproc/py-jtextfsm/pkg-descr
Normal file
22
textproc/py-jtextfsm/pkg-descr
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue