Skip to main content

AI-powered TextFSM template generator with multi-provider routing

Project description

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.
  • Flexible Multi-Provider AI Routing — Use the best AI model for each task with automatic routing across supported cloud providers.

📦 Installation

pip install textfsm-ai

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.

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_ai-0.4.2.tar.gz (57.8 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.4.2-py3-none-any.whl (81.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: textfsm_ai-0.4.2.tar.gz
  • Upload date:
  • Size: 57.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for textfsm_ai-0.4.2.tar.gz
Algorithm Hash digest
SHA256 b7eb5dd8219bb3f8bd8f43de08c9811a4860154a3fbd55d452c31ce044f86089
MD5 4baf92f1b8ec8f2ace076c0974a04f08
BLAKE2b-256 887c7655c18707ddd2ca4608c1d46e6ce083c1f7e5d738d6bf9ebc22987b747d

See more details on using hashes here.

Provenance

The following attestation bundles were made for textfsm_ai-0.4.2.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.4.2-py3-none-any.whl.

File metadata

  • Download URL: textfsm_ai-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 81.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for textfsm_ai-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e50366a3f64ecec4b84e8402d8edf7963876683d24dda29ef3862f7da0c1b80e
MD5 9477f833ad8cf05f0a0aa033bb2b2d0e
BLAKE2b-256 2b8ae63f4edb85529d21408df2c11a92fbdc7fbf7cc1a16d12e277772fc7b656

See more details on using hashes here.

Provenance

The following attestation bundles were made for textfsm_ai-0.4.2-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.

Supported by

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