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

Web-based application for real-time TextFSM parsing

License

Notifications You must be signed in to change notification settings

Mark90/textfsm-workbench

Repository files navigation

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

About

Web-based application for real-time TextFSM parsing

Resources

License

Stars

Watchers

Forks

Packages

No packages published