Skip to main content

Protobuf Libraries to encode message in Drift infrastructure

Project description

Drift Protocol for Python

A Python Protobuf library to encode message in Drift infrastructure. It provides pre-generated Protobuf messages so that you don't need to install protobuf compiler and generate them yourself.


  • Protocol Buffer >=3.12.4 <= 3.20
  • No Protobuf Compiler and generation needed


You can install the library as a PIP package with prebuilt Protobuf messages:

pip install -U drift-protocol

if you want to build the messages on your machine you can install it from the git repository:

pip install git+

Usage example

Parsing a Drift package:

from drift_protocol.common import DriftPackage, DataPayload, StatusCode

some_blob_received_from_drift = "...."

package: DriftPackage = DriftPackage()

if package.statuse != StatusCode.GOOD:

for any_data in
    if any_data.Is(DataPayload.DESCRIPTOR):
        payload = DataPayload()

        data: bytes =

Related Projects

Project details

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

drift_protocol-0.6.0-py3-none-any.whl (13.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page