Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Pimping my Boost::property_tree python bindings out today it seems... https://github.com/eponymous/python3-property_tree

Mostly inspired by jsonpath -- IIRC I implemented as much of it which made sense like dotted tree lookup "tree.foo.bar", lambda searching (which I was tempted to name "where"(e.g. "for key, value in tree.foo.bar.where(lambda k,v: k > 100)") but thought better of it), equality and comparison operators and a few other things I can't quite remember off the top of my head.

Doesn't do expression parsing (edit: actually...it does a limited form of expression parsing inherited from the C++ lib) but works for the couple simple projects I needed it for.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: