Metadata-Version: 2.4
Name: protodef
Version: 0.1.1
Summary: Tiny JSON .protodef protobuf wire encoder/decoder
Author: Sigge Arkestål
License: Apache-2.0
License-File: LICENSE
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# 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.

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