Over the past couple of weeks, I’ve written two bindings for the Ge.tt REST APIs. One is in Perl, of course: Net::API::Gett and the other is written in Python: pygett. It was a good exercise in learning python and how to put together a complete package for distribution through the package index (PyPI). I’m lucky that I had a lot of help on the python side of things from my coworker, Glen Zangirolami (aka glenbot).
Anyway, check either one out. I have some refactoring work to do on the Perl side of things now. Writing in python really made me clarify how I wanted the object structure to work and I like the way things were organized on the python side of the implementation.
It’s not that Perl can’t do objects well, or intelligently – more that the Perl implementation was kind of a “first draft.” Now that I’ve had a lot of time to think about the object design, it’s time to update the Perl implementation.