Skip to main content

Library for serializing a list of protobuf objects

Project description

Library for serializing protobuf objects - Python version

This library is used for simplifying the serialization and deserialization of protocol buffer objects to/from files. The main use-case is to save and read a large collection of objects of the same type. Each file contains a header with the description of the protocol buffer, meaning that no compilation of .proto description file is required before reading a pbz file.

Installation of the latest stable version

$ pip install --upgrade pbzlib

Installation from source

$ pip install --upgrade https://github.com/fabgeyer/pbzlib-py/archive/master.tar.gz

Example

Reading a pbz file:

from pbzlib import open_pbz

for msg in open_pbz("/path/to/file.pbz"):
	print(msg)

Versions in other languages

Project details


Download files

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

Source Distribution

pbzlib-0.20211124.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

pbzlib-0.20211124-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

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