protobuf-pyb


A minimal, dynamic, pure Python implementation of Protocol Buffers

NOTE: This project is experimental and not ready for "production" use.

pyb is a minimal, dynamic, pure Python implementation of Protocol Buffers.

What does this mean?

  • minimal: Aiming for 1000-1500 total lines of code. Less code is faster code, especially in Python.
  • dynamic: no code generation, no build step
  • pure Python: usable without compiling any dependencies; usable in restricted environments like App Engine

See __init__.py for some comments.

Compare pyb's list_people.py with the official protobuf list_people.py. They are quite similar.

TODO:

  • Switch to lazy decoding. Only decode a level of the message tree when an attribute at that level has been accessed.

Project Information

Labels:
protobuf python serialization ProtocolBuffers