TreeDict 0.2

A fast and full-featured dict-like tree container to make parameter, variable and data bookkeeping easy

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
BSD License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Hoyt Koepke
HOMEPAGE:
www.stat.washington.edu
CATEGORY:
ROOT \ Science
TreeDict is a dictionary-like, hierarcical python container to simplify the bookkeeping surrounding parameters, variables and data. It aims to be fast, lightweight, intuitive, feature-rich and stable.

While intended for general python development, it includes a number of features particularly useful for scientific programming. TreeDict is similar in basic functionality to MATLAB structures in terms of concise syntax and implicit branch creation. In addition, though, TreeDict implements all the methods of regular dictionaries, pickling, fast non-intersecting hashing for efficient caching, manipulations on the tree structure, and a system for forward referencing branches to make lists of parameters more readable.

Short Example:

A brief example to wet the appetite:

t = TreeDict()

# Action specified at top for clarity
t.action = t.action_definitions.make_apple_stroudel # dangling branch

# Now specify definitions
t.action_definitions.make_apple_stroudel.action = "puree"
t.action_definitions.make_apple_stroudel.ingredients = ["apple", "stroudel"]

# And so on...

Last updated on January 29th, 2011

feature list requirements

#dict tree #book keeping #tree container #dict #tree #container #bookkeeping

Add your review!

SUBMIT