On Wed, Jun 3, 2009 at 9:46 PM, Artyom Shalkhakov > Sure, hand it over! Oops, meant to Reply All earlier:
On Wed, Jun 3, 2009 at 12:04 PM, Lele Gaifax <[email protected]> wrote: > On Wed, 3 Jun 2009 08:55:34 -0700 > Max Battcher <[email protected]> wrote: > >> At this point, I have a very nice wrapper around most of darcs' XML >> output in Python if you are interested. > > Nice to know ;) In which way does that differ from tailor's one? Based upon a quick glance at tailor trunk: * Generator-based: using elementTree most of the XML parsing is relatively lazy, returning simple Python structures as soon as possible. You can do faster, lazier, code, but I think mine makes a nice compromise between power, speed, and readability. * Parses the XML output from ``darcs annotate some/file --xml``, in addition to changes' XML output. * Very light on dependencies: Django's tzinfo wrapper (could probably be easily switched to some other similar tz package) and cElementTree (included in Python 2.5+, available library for Python 2.0-2.5). Output is just basic Python types (tuples, dictionaries). It's a key piece of my "darcsforge" work, and while probably not complete/perfect yet I'm still fairly proud of it. Here's the file, it may not be the most recent version (I'll double check later this week when I get back home): http://repos.worldmaker.net/darcsforge/main/darcsforge/darcs.py Very basic documentation: http://repos.worldmaker.net/darcsforge/main/docs/.build/html/darcs.html -- --Max Battcher-- http://www.worldmaker.net/ _______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
