Re: [coders] Python design patterns for hierarchical structure of objects

2010-02-16 Thread Martin Visser
On Tue, Feb 16, 2010 at 3:21 PM, Lindsay Holmwood wrote: > > Speaking of other things that are fortunately written in Ruby, you > might be interested in TreeTop - it helps you quickly write parsers > for all sorts of interesting things: > > http://treetop.rubyforge.org/ > > Cucumber's Gherkin sp

Re: [coders] Python design patterns for hierarchical structure of objects

2010-02-15 Thread Matthew Hannigan
On Tue, Feb 16, 2010 at 03:09:58PM +1100, Martin Visser wrote: > Matthew, > > Thanks. I was aware of Puppet, but not Augeas. > > Unfortunately, neither seem to be written in Python, and I really want this Augeas has bindings in python, ruby, ocaml, perl, haskell, java and php, according to the d

Re: [coders] Python design patterns for hierarchical structure of objects

2010-02-15 Thread Lindsay Holmwood
On 15 February 2010 22:28, Matthew Hannigan wrote: > > 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 change

Re: [coders] Python design patterns for hierarchical structure of objects

2010-02-15 Thread Martin Visser
Matthew, Thanks. I was aware of Puppet, but not Augeas. Unfortunately, neither seem to be written in Python, and I really want this to be a bit of coding exercise as much as getting the job done. I really want to code this - but hopefully using some design concepts from others. (And I like Python

Re: [coders] Python design patterns for hierarchical structure of objects

2010-02-15 Thread Matthew Hannigan
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 in

[coders] Python design patterns for hierarchical structure of objects

2010-02-15 Thread Martin Visser
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 component