Augeas comies to mind. http://augeas.net/ "Augeas - a configuration API Augeas is a configuration editing tool. It parses configuration files in their native formats and transforms them into a tree. Configuration changes are made by manipulating this tree and saving it back into native config files."
You may also want to look at Puppet if you're not aware if it. http://reductivelabs.com/products/puppet/ The front page is a bit sales talky so I won't quote it here. It's also in ruby which is slightly unfortunate. On Tue, Feb 16, 2010 at 01:32:18PM +1100, Martin Visser wrote: > Hi, > > I'm starting to build a Python program to help better describe systems I > work with. While I am making progress, I am interesting in whether anyone is > aware of some existing projects or even libraries/snippets that might help. > > Essentially I need to be able to establish a structure of components > (multi-level members), record connections between components, and record > attributes. It needs to be flexible enough (allowing it to determine valid > attributes and connections), depending on the position of the component in > the structure. While not particularly hard, and I am making progress, being > a relative Python noob, I was hoping for to look at ways other than what I > am writing for it to be done. > > I will also need to parse proprietary configuration files to build the > structure, but that is whole other can of worms I guess. (And eventually I > want to output the "structure" in both a normalized text, and graphical > format(eg Graphviz). Eventually I would like to build to something that can > be interacted with directly (probably via Web2.0ish interface). > > I have built something similar to this in Perl, however it was very > procedural, and hence turned out very locked into to a fixed set of input > files, and hard to maintain. (I started out learning FORTRAN, so it is hard > to change old habits). > > (Googling doesn't seem to find what I want all that easy - I probably need > the right Computer Science keywords to get what I want). > > > Regards, Martin > > martinvisse...@gmail.com > _______________________________________________ > coders mailing list > coders@slug.org.au > http://lists.slug.org.au/listinfo/coders _______________________________________________ coders mailing list coders@slug.org.au http://lists.slug.org.au/listinfo/coders