Skip to main content

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.

Release files for textfsm 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for textfsm 2.1.0
File Size Uploaded
textfsm-2.1.0.tar.gz 55.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for textfsm 2.1.0
File Interpreter ABI Platform
textfsm-2.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 99.8 kB

Release files / textfsm-2.1.0.tar.gz

Download URL textfsm-2.1.0.tar.gz
Size 55.5 kB
Tags Source
SHA-256 checksum
How to use checksums
45c18ff2b7c90163dfdff7e20d3f482514cc7aac26bc2547744e79dfa761e458
BLAKE2b-256 checksum
How to use checksums
9e872a93c2ced2a11fb26cfec3623894a9127b9b67ae3cfdd1778afa5cff576f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / textfsm-2.1.0-py2.py3-none-any.whl

Download URL textfsm-2.1.0-py2.py3-none-any.whl
Size 44.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
55886490474890fa09ade0e8c9555a913fd325724842293364dc44ea705b3616
BLAKE2b-256 checksum
How to use checksums
821aab772f8479adedad1bdd12dd5c2bf6facf3fad8d04f35b4f4053201d202d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.0

1 release file

0.4.1

1 release file

0.4.0

1 release file

0.3.2

1 release file

0.2.0

0.1.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page