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
Metadata
Release files for jsonproto 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 | |
|---|---|---|---|
| jsonproto-0.0.3.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jsonproto-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.2 kB
Release files / jsonproto-0.0.3.tar.gz
| Download URL | jsonproto-0.0.3.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ed0966283266d5f0151457ef1c0d4f42f7f39b42a21bd0532e3bfef23854053
|
|
BLAKE2b-256 checksum How to use checksums |
58f67925009ccb4542570f75ccb70c683d7a2fff8804cf97de22ab9c23145f3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / jsonproto-0.0.3-py3-none-any.whl
| Download URL | jsonproto-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8e1a010550b48378bc072d07e08c04ff9a2f184cc44ea3c5796a75e5e304b1f1
|
|
BLAKE2b-256 checksum How to use checksums |
a5fd3d01fce825364cceb6e579e1853ef3761972391520032ff047a8b1fa6a06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|