Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

What is this unknown markup/config format exported from Metaswitch, formatted with Begin/End and Spaced Intents, and is there a parser for it?

$
0
0

I've been handed a configuration file from a Metaswitch system, and I need to transform it into an object (preferably with Python) and do some processing on the data. It seems to be some kind of markup language or config file format, similar to YAML. It may be proprietary and specific to Metaswitch, but it feels like something standard. Is this a standard format with a name that I can Google search for? If there is, hopefully there's a parser already built for it that I can just consume. If not, maybe I just have to build one. Here's an example of what it looks like:

//UTF8begin TypeOfContainer NameOfContainer //Named Container  KeyName              ValueName  AnotherKeyName       AnotherValueName  begin SomeSubContainer SubContainerName //Some "Helper" text. A list of objects of some kind.    begin SomeSub SomeSub.1 //Some helper text      SomeSubContainerName       Arbitrary_Value_Name1      KeyNameWithNest            SomeValue        NestedKeyName              SomeValue        NestedKeyName2             SomeValue    end //Helper    begin SomeSub SomeSub.2 //Some helper text      SomeSubContainerName       Arbitrary_Value_Name2      KeyNameWithNest            SomeValue        NestedKeyName              SomeValue        NestedKeyName2             SomeValue    end //Helper  end //helper text for SomeSubContainerend //helper text for TypeOfContainer

I've tried searching specifically for Metaswitch configuration, and haven't found anything. I've tried searching for "markup language formatted by begin/end and indents", "YAML with begin/end headers", "config format with nested objects formatted by indents" and a few others, and I haven't found anything that matches specifically. I've found a few ideas on how to format it, but nothing specific to this type. I'm sure I can figure something out with pyparsing or similar, but if something already exists, I'd rather use that.


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>