Existing Data Tree tools for Hops in Python

I am writing a flask app to use in grasshopper via hops.

Are there any existing modules to interact with data tree objects in an intuitive way, or translate into list of list or arrays? Otherwise I will have to roll my own, which seems awkward based on the way trees are passed as a dict (with keys as a string of the branch path and entries as leaves).

I think this is what you’re looking for:


I believe the ghpythonlib module is only available inside of Ghpython, the interpreter built into Grasshopper.


This may be true, I don’t know anything about hops. If you do have to write your own code, perhaps you could get some ideas from treehelpers.py