textproc/py-textfsm 2.1.0 FreeBSD
Parses semi-structured text into Python tables
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- APACHE20
- Categories
- textproc, python
- Package size
- 68.8 KiB, 367.0 KiB installed
Description
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).
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | textproc/py-textfsm | 2.1.0 |
| OpenBSD | textproc/py-textfsm | 2.1.0 |
| NetBSD | textproc/py-textfsm | 2.1.0 |
| DragonFly | textproc/py-textfsm | 1.1.3_2 |
Install
Binary package:
pkg install py312-textfsm
From the ports tree:
cd /usr/ports/textproc/py-textfsm/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-textfsm>0:textproc/py-textfsm
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.1.0 | 2.1.0 | 1.1.3 | 1.1.3_2 | 2.1.0 |
| FreeBSD:14:quarterly | 2.1.0 | 2.1.0 | n/a | 1.1.3_2 | 2.1.0 |
| FreeBSD:15:latest | 2.1.0 | 2.1.0 | n/a | 1.1.3_2 | 2.1.0 |
| FreeBSD:15:quarterly | 2.1.0 | 2.1.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.1.0 | 2.1.0 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}wheel>0: devel/py-wheel
The full lists below include those, and their dependencies in turn.
Build dependencies 16
Run dependencies 7
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| textfsm-2.1.0.tar.gz | 55486 | 45c18ff2b7c90163dfdff7e20d3f482514cc7aac26bc2547744e79dfa761e458 |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.