Skip to main content

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


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)

Uploaded Source

Built Distribution

jsonproto-0.0.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

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

Hashes for jsonproto-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7d00bb6580c2fae5f05d802cf788d75f40fd683b539523076d4618e3236164fa
MD5 289a4d4f2c1492cb85b5b990492baf9b
BLAKE2b-256 9a687423e944ce74656f1bed1d0f7a4230a6fd5505ceb4c94208a6ff028656b7

See more details on using hashes here.

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

Hashes for jsonproto-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 783476882a5a881c4fdf47f7eb696bf77ab968cc90dfd13861038612d2b7514f
MD5 f544f7101a572fb191a983ea8afad174
BLAKE2b-256 97f92f8de8437ea129c938e5934732692159a7ad5e5d58606f0a29dad5f8818b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page