Skip to main content

Python module for parsing semi-structured text into python tables.

Project description

TextFSM

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).

TextFSM was developed internally at Google and released under the Apache 2.0 licence for the benefit of the wider community.

See documentation for more details.

Before contributing

If you are not a Google employee, our lawyers insist that you sign a Contributor Licence Agreement (CLA).

If you are an individual writing original source code and you're sure you own the intellectual property, then you'll need to sign an individual CLA. Individual CLAs can be signed electronically. If you work for a company that wants to allow you to contribute your work, then you'll need to sign a corporate CLA. The Google CLA is based on Apache's. Note that unlike some projects (notably GNU projects), we do not require a transfer of copyright. You still own the patch.

Sadly, even the smallest patch needs a CLA.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

textfsm-1.1.3.tar.gz (55.5 kB view details)

Uploaded Source

Built Distribution

textfsm-1.1.3-py2.py3-none-any.whl (44.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file textfsm-1.1.3.tar.gz.

File metadata

  • Download URL: textfsm-1.1.3.tar.gz
  • Upload date:
  • Size: 55.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for textfsm-1.1.3.tar.gz
Algorithm Hash digest
SHA256 577ef278a9237f5341ae9b682947cefa4a2c1b24dbe486f94f2c95addc6504b5
MD5 9593fa92f63fae3745986b2ebd756c60
BLAKE2b-256 b8bfc9147d29c5a3ff4c1c876e16ea02f6d4e4f35ba1bcbb2ac80a254924f0aa

See more details on using hashes here.

File details

Details for the file textfsm-1.1.3-py2.py3-none-any.whl.

File metadata

  • Download URL: textfsm-1.1.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 44.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for textfsm-1.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 dcbeebc6a6137bed561c71a56344d752e6dbc04ae5ea309252cb70fb97ccc9cd
MD5 dbdd5d10d1d6cb157730ddfcaafc5624
BLAKE2b-256 f8f2235703136dc9f25d1498c0f0b49ed99a4d7f98c361f322a5da586eb1ee06

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page