Skip to main content

Tiny JSON .protodef protobuf wire encoder/decoder

Project description

protodef

Tiny JSON .protodef protobuf wire encoder/decoder.

This is not a protobuf compiler. It only stores enough information to encode and decode protobuf wire data from Python dictionaries.

from protodef import load_schema

schema = load_schema("Media.protodef")

payload = schema.encode("Media.UploadedFileRef", {
    "id": 123,
    "name": "cat.png",
    "partCount": 1,
})

print(payload.hex())
print(schema.decode("Media.UploadedFileRef", payload))

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

protodef-0.1.1.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

protodef-0.1.1-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file protodef-0.1.1.tar.gz.

File metadata

  • Download URL: protodef-0.1.1.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for protodef-0.1.1.tar.gz
Algorithm Hash digest
SHA256 157c5a03d24ee52e92de781d0bf331f9a4178637b5a0d5bf75ee952b1fbbd815
MD5 6182ee5ed4f42c9fb2df8bad4b468a89
BLAKE2b-256 ec3261c0f4a0981a343870b234ff13a8051d2fbbe543d387cfbf2d6d6f281948

See more details on using hashes here.

File details

Details for the file protodef-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: protodef-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for protodef-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 89f27fc4fc9f4f9ed0843f9bca6318226717bdc8cf6d75f9f471ae02ac1c875c
MD5 5de4e97a254a91513dc53930368620f0
BLAKE2b-256 97d6bf6bdc3bedd9219e5bd957f91411992f514cb675b163c41dd089dc78cf15

See more details on using hashes here.

Supported by

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