protobuf
protobuf copied to clipboard
Python implementation of Protocol Buffers with dataclass-based schemaʼs
For 3rd-party APIs people often have messages defined via `*.proto` files which are "ground truth". It requires additional work to keep Python data classes in sync with `*.proto`. Let's a...
Any plans for this? Syntactically, I think something like this makes sense: ```python from dataclasses import dataclass from typing import Union from pure_protobuf.dataclasses_ import field, message, oneof from pure_protobuf.types import...
Support [`typing.Annotated`](https://docs.python.org/3/library/typing.html#typing.Annotated) instead of assigning `field(…)`.
https://docs.python.org/3/reference/datamodel.html#object.__bytes__
https://developers.google.com/protocol-buffers/docs/proto3#assigning-field-numbers > The smallest field number you can specify is **1**, and the largest is 2²⁹ - 1, or **536,870,911**. You also cannot use the numbers **19000 through 19999** (...),...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [mkdocs-git-revision-date-localized-plugin](https://togithub.com/timvink/mkdocs-git-revision-date-localized-plugin) | `1.2.2` -> `1.2.4` | [](https://docs.renovatebot.com/merge-confidence/)...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [pydantic](https://togithub.com/pydantic/pydantic) ([changelog](https://docs.pydantic.dev/latest/changelog/)) | `1.10.14` -> `2.6.3` |...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [pytest](https://docs.pytest.org/en/latest/) ([source](https://togithub.com/pytest-dev/pytest), [changelog](https://docs.pytest.org/en/stable/changelog.html)) | `7.4.4` -> `8.0.2`...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [black](https://togithub.com/psf/black) ([changelog](https://togithub.com/psf/black/blob/main/CHANGES.md)) | `23.12.1` -> `24.2.0` |...