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

Download files

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

Source Distribution

textfsm_ai-0.8.1.tar.gz (51.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

textfsm_ai-0.8.1-py3-none-any.whl (67.0 kB view details)

Uploaded Python 3

File details

Details for the file textfsm_ai-0.8.1.tar.gz.

File metadata

  • Download URL: textfsm_ai-0.8.1.tar.gz
  • Upload date:
  • Size: 51.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for textfsm_ai-0.8.1.tar.gz
Algorithm Hash digest
SHA256 aa70d2b7444e7524517b630b4e9d133c354fbad44d9ea9adc23459cfc514f677
MD5 1c368f92d3692e51b568d2cd7a5b3757
BLAKE2b-256 204e1cfe76520ee2c2af8d404695cb57007687172e849fe66895747b319d6523

See more details on using hashes here.

Provenance

The following attestation bundles were made for textfsm_ai-0.8.1.tar.gz:

Publisher: publish-pypi.yml on Geeks-Trident-LLC/textfsm-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file textfsm_ai-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: textfsm_ai-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 67.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for textfsm_ai-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3f63385f606b00db93a6d5b9d7fc4fdeeb42aeda18258955805ddb8b4d4f50d
MD5 d1d09da092b3295a41f3686fb1507582
BLAKE2b-256 eec634e92c2336451713a49b6b160f29ec5dd1ba9308a8145b1fba31a3efa3c8

See more details on using hashes here.

Provenance

The following attestation bundles were made for textfsm_ai-0.8.1-py3-none-any.whl:

Publisher: publish-pypi.yml on Geeks-Trident-LLC/textfsm-ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.8.1 This release

2 files

0.8.0

2 files

0.7.1

2 files

0.7.0

2 files

0.6.1

2 files

0.6.0

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.7

2 files

0.3.4

2 files

0.3.2

2 files

0.3.0

2 files

0.2.13

2 files

0.2.11

2 files

0.2.10

2 files

0.1.25

2 files

0.1.20

2 files

0.1.19

2 files

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