Skip to main content

textfsm-ai

AI-powered TextFSM template generation, parsing assistance, and smart log extraction.

textfsm-ai brings modern LLM intelligence to traditional TextFSM workflows.
It helps you automatically generate templates, validate patterns, explain parsing logic, and accelerate network automation development.


🚀 Features

  • AI-Powered Template Generation — Turn raw CLI output into production-ready TextFSM templates in seconds.
  • Smart Validation & Refinement — Automatically verify template correctness and refine ambiguous patterns with AI assistance.
  • 18 Supported LLM Providers — Pick the provider and model for each task; every provider is called through one consistent interface.

📦 Installation

pip install textfsm-ai

This installs the core CLI/API only. Add the provider(s) you actually use as an extra, e.g. pip install textfsm-ai[openai] or pip install textfsm-ai[anthropic] — or textfsm-ai[all] for every provider SDK at once. See Installation for the full list.

Verify installation

textfsm-ai --version
# or
textfsm-ai version

Either command prints the installed version, e.g. textfsm-ai v0.4.0.


📚 Documentation


🤖 What is textfsm-ai, in an LLM's view?

For an LLM, TextFSM's native syntax — regex-heavy Value/Rule definitions driving a state machine — is easy to get almost right and hard to get exactly right; small regex or state-transition mistakes are common and easy to miss. textfsm-ai acts as an LLM optimizer for TextFSM: instead of asking a model to freehand raw TextFSM syntax, it gives the model a smaller, constrained, readable DSL to generate from, then deterministically compiles that DSL into a canonical TextFSM template. The model reasons about structure and intent; textfsm-ai guarantees the correctness and consistency of the resulting syntax.


❓ Why do you need textfsm-ai?

  • Understands Messy Input — Feed it raw CLI output, log lines, or any plain-text or semi-structured text; no need to hand-write parsing rules for every format and edge case.
  • No TextFSM Syntax Required — textfsm-ai handles TextFSM's regex-heavy Value/Rule/state-machine syntax for you, so you don't need prior TextFSM expertise to get a working, correct template.
  • Canonical, Consistent Templates — Every generated template goes through the same deterministic normalization step, so the same kind of input reliably produces the same shape of output every time.
  • Readable DSL — Templates can also be expressed as a human-readable DSL that non-technical teammates can read and reason about, instead of a wall of regex.
  • Recognizer Pattern Generation — Beyond extracting values, textfsm-ai can generate recognizer patterns that detect which block of text a template applies to before parsing it.
  • Real-World Applications — Log extraction, test-data extraction and normalization, and other pipelines that turn recurring plain-text or semi-structured output into reliable, structured records.

Metadata

Release files for textfsm-ai 0.8.1

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-ai 0.8.1
File Size Uploaded Provenance Actions
textfsm_ai-0.8.1.tar.gz 51.9 kB With provenance Details for textfsm_ai-0.8.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for textfsm-ai 0.8.1
File Interpreter ABI Platform Actions
textfsm_ai-0.8.1-py3-none-any.whl Python 3 none any Details for textfsm_ai-0.8.1-py3-none-any.whl

Total release size: 118.9 kB

Release files / textfsm_ai-0.8.1.tar.gz

Download URL textfsm_ai-0.8.1.tar.gz
Size 51.9 kB
Tags Source
SHA-256 checksum
How to use checksums
aa70d2b7444e7524517b630b4e9d133c354fbad44d9ea9adc23459cfc514f677
BLAKE2b-256 checksum
How to use checksums
204e1cfe76520ee2c2af8d404695cb57007687172e849fe66895747b319d6523
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 5, 2026.

Transparency log

Release files / textfsm_ai-0.8.1-py3-none-any.whl

Download URL textfsm_ai-0.8.1-py3-none-any.whl
Size 67.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3f63385f606b00db93a6d5b9d7fc4fdeeb42aeda18258955805ddb8b4d4f50d
BLAKE2b-256 checksum
How to use checksums
eec634e92c2336451713a49b6b160f29ec5dd1ba9308a8145b1fba31a3efa3c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 5, 2026.

Transparency log

Security for textfsm-ai 0.8.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for textfsm_ai-0.8.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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