Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Converts protobuf generated messages to Python friendly schematics models.

Project description

Making Protobuf messages as cute as Python.


Protobuf and gRPC are great when it comes to high performance schema aware APIs, but when Google designed Protobuf, it didn’t tried to make the generated code idiomatic in Python, which brings a problem when exporting messages outside iterface modules.

Schematics is a cute and pythonic schema library. Why not join both?


Using pip:

pip install proto_schamatics


Inspecting a module is as simple as:

from proto_schematics import ProtobufModule

models = ProtobufModule('my_protobuf_lib').import_schema()
MySchamticsModel = models['ProtobufMessageName']

You can also do it on a lazy lint unfriendly way:

from proto_schematics import ProtobufModule

from protobuf_schematics import ProtobufMessageName as MySchematicsModel


  • Datetimes as native Python
  • Duration as TimeDeltas
  • Wrappers as native nullable types

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for proto-schematics, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size proto_schematics-0.1.0.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page