Protobuf-tools Project
Purpose
To ease editing and reading protocol buffer files
It provides easy interface to encode/decode proto files
Installation
This package can be pip installed
pip install protobuf_tools
Usage
Python
you can import it in your library as
from protobuf_tools import proto_utils
protobuftools
To use to read/decode any proto files please use the script utility protobuftools If you do not provide the –proto_path it defaults to the working directory
##### For help use
protobuftools -h
##### To use json for decode or encode use -json flag
##### For enabling all fields to be part of decode use –allfields
##### For decoding a protobuf file to more human readable form
protobuftools “<path_to_proto_stream_file>” –proto_path “<optional - provide path to where _pb2 files are>” –decode=message_name –allfields -json
#### To display instead of writing to file
protobuftools “<path_to_proto_stream_file>” –proto_path “<optional - provide path to where _pb2 files are>” –decode=message_name –allfields -json -d
##### For encoding - To convert from json/text to protobuf file, output is a file with .protoout extension
protobuftools “<path_to_file(.json/.txt etc) from above” –proto_path “<optional - provide path to where _pb2 files are>” –encode=message_name -json
For Bugs
Join the slack workspace at - https://join.slack.com/t/projectaja/shared_invite/enQtMjk1NTk0NzIwNDIzLWRmMTNjMzY3ZGFmYjY4MGZhOTBiNjZjZTA1YzM3MmFmYWIxOTJkY2QyOWNjM2JhZTk3NTMzMzNmZGIyZGM3NmY
And join the protobuf_tools channel
Also you can email me at
pip[at]abhijit.bansal.com
Future
Add UI tools for viewing and editing
Support for python 3 and proto 3
Version History
0.0.3 : Changed version of protobuf to 3.2.0 should work for any other version too
0.0.2 : Changed setup version for protobuf
0.0.1 : Initial version, tested upload to pypi
Metadata
Release files for protobuf-tools 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| protobuf_tools-0.0.3.tar.gz | 7.2 kB | Without provenance | Details for protobuf_tools-0.0.3.tar.gz |
Release files / protobuf_tools-0.0.3.tar.gz
| Download URL | protobuf_tools-0.0.3.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6143ca078b0ef3b7e3c2e681ecccca61b5423d34a228d1d557e1bdf6aa4dd29f
|
|
BLAKE2b-256 checksum How to use checksums |
1cfea7b7e3406bad6f1dd5e10ff937d98550715afb5e18861ed1ace06733380d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for protobuf-tools 0.0.3
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.