Protocol Buffers

Shane Hathaway on January 27th, 2009

Remember how I was talking about serializing data in ZODB using Google Protocol Buffers instead of pickles?  Well, Keas Inc. suggested the idea and asked me to work on it.  The first release of a package combination that implements the idea is ready: keas.pbstate 0.1.1 (on PyPI), which helps you write classes that store all [...]

Continue reading about keas.pbpersist and keas.pbstate

Shane Hathaway on January 9th, 2009

Today I drafted a module that mixes ZODB with Protocol Buffers.  It’s looking good!  I was hoping not to use metaclasses, but metaclasses solved a lot of problems, so I’ll keep them unless they cause deeper problems. The code so far lets you create a class like this: class Tower(Persistent): __metaclass__ = ProtobufState protobuf_type = [...]

Continue reading about ZODB + Protobuf Looking Good

Shane Hathaway on January 7th, 2009

I am now looking at integrating Google’s Protocol Buffers into ZODB.  This means that wherever possible, ZODB should store a serialized protocol buffer rather than a pickle.  The main thing my customer hopes to gain is language independence, but storing protocol buffers could open other possibilities as well.  I think this is a very good [...]

Continue reading about Contemplating Integration of Protocol Buffers into ZODB