google / textfsm

Python module for parsing semi-structured text into python tables.
Apache License 2.0
1.11k stars 171 forks source link

Request for textfsm in Go #64

Open manivannanpk opened 5 years ago

manivannanpk commented 5 years ago

Can you please make textfsm available in go?

myyellowshoe commented 4 years ago

Not ideal, but you could write a wrapper and have Go run a python script that uses textfsm. https://stackoverflow.com/questions/35528180/how-to-run-external-python-script-in-golang Did something similar in node.

manivannanpk commented 4 years ago

Any update from Google TextFSM team on this?

manivannanpk commented 4 years ago

Not ideal, but you could write a wrapper and have Go run a python script that uses textfsm. https://stackoverflow.com/questions/35528180/how-to-run-external-python-script-in-golang Did something similar in node.

@myyellowshoe Thanks. That's how I am running it now. But having it in native go code will be more efficient.

manivannanpk commented 4 years ago

Can I transcompile Python TextFSM to Go using grumpy?

sirikothe commented 4 years ago

I have created a port of python textfsm into golang. Please give it a try and let me know if you like it: https://github.com/sirikothe/gotextfsm