Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Latest commit

 

History

History
28 lines (17 loc) · 1.08 KB

README.md

File metadata and controls

28 lines (17 loc) · 1.08 KB

TextFSM Workbench

A small web-based application for real-time TextFSM parsing in your browser.

What is it?

A small Flask application that exposes:

  • A WebSocket endpoint that takes data and TextFSM template, returns the parsed result
  • Webpage that connects to the WS endpoint from Javascript

Why?

I recently had to do a fair bit of work with TextFSM templates. Being spoiled by websites as regex101.com and regextester.com, I tried to make something similar for TextFSM.

The app works as intended and is mostly done. What could/should be improved is resizing and the proportions on on small screens; currently the textareas become unnecessarily small and the Example buttons overlap with the divs.

Installation and usage

  • Install Python 3.8 and pipenv
  • pipenv install
  • pipenv run python main.py
  • Navigate to http://127.0.0.1:5001 in your browser
  • Try the examples, or paste your own data and templates

Acknowledgements