Skip to content

Tag: data-conversion

Python convert switch data (text) to dict

I have the following data, which I recieve via a ssh session to a switch. I wish to convert the input which is text to a dict for easy access and the possiblity to monitor certain values. I cannot get the data extracted without a ton of splits and regexes and still get stuck. Which I want to convert to: