No project description provided
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.2.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file jsonproto-0.0.2.tar.gz
.
File metadata
- Download URL: jsonproto-0.0.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d00bb6580c2fae5f05d802cf788d75f40fd683b539523076d4618e3236164fa |
|
MD5 | 289a4d4f2c1492cb85b5b990492baf9b |
|
BLAKE2b-256 | 9a687423e944ce74656f1bed1d0f7a4230a6fd5505ceb4c94208a6ff028656b7 |
File details
Details for the file jsonproto-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: jsonproto-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.1 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 | 783476882a5a881c4fdf47f7eb696bf77ab968cc90dfd13861038612d2b7514f |
|
MD5 | f544f7101a572fb191a983ea8afad174 |
|
BLAKE2b-256 | 97f92f8de8437ea129c938e5934732692159a7ad5e5d58606f0a29dad5f8818b |