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.
Metadata
Release files for protobuf-bytes 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| protobuf_bytes-1.0.1-py3.7.egg | Legacy Egg format | - | - | Details for protobuf_bytes-1.0.1-py3.7.egg |
Release files / protobuf_bytes-1.0.1-py3.7.egg
| Download URL | protobuf_bytes-1.0.1-py3.7.egg |
|---|---|
| Size | 6.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
55427c7b358a116c3793d6e04dd64d950a6aa3cb9fec265c4777095eb7e8b769
|
|
BLAKE2b-256 checksum How to use checksums |
518ee5580aa9cbf57b5964e7f36efbdd039dc7dbb29aac635c4f7ad91221ebff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for protobuf-bytes 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.