Python implementation of protobuf_bytes
Project description
Protobuf Bytes for python
Contents
Install
To use protobuf_bytes, install package via pip install.
pip install protobuf_bytes
Or install from source.
python setup.py install
Get protobuf
The protobuf file is located here.
Examples
from bytes_pb2 import BytesMessage
from protobuf_bytes import Bytes, BytesType
m = BytesMessage()
m.type = BytesType.BYTES_TYPE_8U_C1
m.bigendian = False
m.data = bytes(range(12))
b = Bytes(m)
for i in range(b.length()):
print(b.data_at(i))
// [0]
// [1]
// [2]
// [3]
// [4]
// [5]
// [6]
// [7]
// [8]
// [9]
// [10]
// [11]
m.type = BytesType.BYTES_TYPE_8U_C3
b = Bytes(m)
for i in range(b.length()):
print(b.data_at(i))
// [0, 1, 2]
// [3, 4, 5]
// [6, 7, 8]
// [9, 10, 11]
APIs
Please reads docs/apis.md.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file protobuf_bytes-1.0.1-py3.7.egg.
File metadata
- Download URL: protobuf_bytes-1.0.1-py3.7.egg
- Upload date:
- Size: 6.4 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55427c7b358a116c3793d6e04dd64d950a6aa3cb9fec265c4777095eb7e8b769
|
|
| MD5 |
3391c3e5c61c6204e346eb9219fb9750
|
|
| BLAKE2b-256 |
518ee5580aa9cbf57b5964e7f36efbdd039dc7dbb29aac635c4f7ad91221ebff
|