Convert json payloads into protobuf messages
Project description
jsonproto
Make protobuf messages without generating protos or reflection
Convert json into proto bytes on stdout
--data: JSON data to convert to proto
--field-numbers: Field numbers for proto (Optional)
Examples:
$ jsonproto --data '{"name": "Jimmy", "age": 42, "details" : {"ssn": "blah"}}' --field-numbers '{"name": 1, "age": 2, "details.ssn": 5}' > output.bin
$ jsonproto --data '{"name": "Jimmy", "age": 42}' --field-numbers '{"name": 1, "age": 2}' > output.bin
$ jsonproto --data '{"name": "Jimmy", "age": 42}' > output.bin
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 Distribution
jsonproto-0.0.3.tar.gz
(4.4 kB
view details)
Built Distribution
File details
Details for the file jsonproto-0.0.3.tar.gz
.
File metadata
- Download URL: jsonproto-0.0.3.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ed0966283266d5f0151457ef1c0d4f42f7f39b42a21bd0532e3bfef23854053 |
|
MD5 | 8e05047283a3d75ccf2e2cf7d1c59903 |
|
BLAKE2b-256 | 58f67925009ccb4542570f75ccb70c683d7a2fff8804cf97de22ab9c23145f3e |
File details
Details for the file jsonproto-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: jsonproto-0.0.3-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e1a010550b48378bc072d07e08c04ff9a2f184cc44ea3c5796a75e5e304b1f1 |
|
MD5 | 3bf513b548a6b4e73b2021538390ec37 |
|
BLAKE2b-256 | a5fd3d01fce825364cceb6e579e1853ef3761972391520032ff047a8b1fa6a06 |