Skip to main content

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))

Release files for protodef 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for protodef 0.1.1
File Size Uploaded
protodef-0.1.1.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for protodef 0.1.1
File Interpreter ABI Platform
protodef-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 23.2 kB

Release files / protodef-0.1.1.tar.gz

Download URL protodef-0.1.1.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
157c5a03d24ee52e92de781d0bf331f9a4178637b5a0d5bf75ee952b1fbbd815
BLAKE2b-256 checksum
How to use checksums
ec3261c0f4a0981a343870b234ff13a8051d2fbbe543d387cfbf2d6d6f281948
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / protodef-0.1.1-py3-none-any.whl

Download URL protodef-0.1.1-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89f27fc4fc9f4f9ed0843f9bca6318226717bdc8cf6d75f9f471ae02ac1c875c
BLAKE2b-256 checksum
How to use checksums
97d6bf6bdc3bedd9219e5bd957f91411992f514cb675b163c41dd089dc78cf15
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page