Hi Ben -
This is wonderful work! I have a half-written Pairtree library around,
but I am pleased not to have to document & release it.
I previously turned (half) the test cases for Perl pairtree into
testcases for Python. I have attached my test.py script modified to
use your new library. Most everything seems to work, except for a
problem with space and a problem with unicode.
John - I think that it would be nice to begin to define a set of test
cases for Pairtree to try to achieve interoperability.
I left out a few that I felt were inappropriate,
namely:
i2p2i('', '//', '0-char edge case');
because I think that a Pairtree should refuse to process a 0 character
id.
I also added an explicit test of the space mapping.
I have attached my Python pairtree library, if you are interested in
the hex encoding.
Thanks again for releasing this!
best,
Erik
Ed Summers and I have worked on two Python libraries for the Dflat,
ReDD, and Namaste micro-service specifications. Mostly they were an
experiment to see how easy in practice it would be to implement and
use tools built on such lightweight specs, but it could be they're
useful for other folks too. Caveats aside, the code is all up on
github for folks who're interested in collaborating, and they're also
on pypi for easy_install purposes:
http://github.com/edsu/dflat
http://github.com/mjgiarlo/namaste
Each library has test cases which can be run with "python setup.py
test". I'd be glad to add test cases to boost interop between related
codesets, as Ben and Erik worked on for Pairtree. Oh, and I should
add that the Namaste library is largely a port of the Perl library up
on CPAN.
Cheers,
-Mike
At Fri, 16 Oct 2009 07:16:09 -0700 (PDT),
Ben O'Steen wrote:
> Erik,
>
> Thanks for sending me the magic regexes and tests :) I've since
> incorporated them into the code, added a few tests and made sure
> that it can roundtrip all of the existing tests - "What you put in,
> you get out again"
Thanks, I forgot to do that.
> How do you want me to attribute you?
My work is (c) 2009 UC Regents. It is derived from John Kunze’s work,
which is also (c) UC Regents and released under the Apache license,
but I am sure we could relicense as BSD or something else.
And thanks for putting the code on github!
We are working on getting a open wiki up for curation microservices
work, expect that in the next few days.
-Erik
Hi Ben -
I prefer BSD to Apache, and GPL over both, but whatever works for you,
of course.
best,
Erik