Protobuf-to-pydantic

Latest version: v0.2.6.2

Safety actively analyzes 641221 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.2.0

- Feature, support Pydantic Version 2.0.0+
- Feature, datetime compared by timestamp
- Feature, support optional field
- Feature, field add required attr
- Feature, change format feature optional default value
- Feature, p2p rule support default template feature
- Refactor, refactor model's validator code gen(Use Pydantic's validator naming standard)

0.1.7

- Fix, fix plugin cli not use param
- Feature, Plugin CodeGen support customer config and support Field config
- Feature, Plugin CodeGen support customer head&tail content
- Feature, Plugin CodeGen support Struct
- Feature, support [after refer Message(4)](https://github.com/so1n/protobuf_to_pydantic/issues/4) and [Self-referencing Message(#7)](https://github.com/so1n/protobuf_to_pydantic/issues/7)
- Feature, support 3.20.x and 4.20.x Protobuf ([See the differences in versions](https://protobuf.dev/news/2022-05-06/#python-updates))
- Refactor, Enhanced module path matching
- Refactor, format code
- 1.remove yapf support
- 2.support format tool load config from pyproject.toml
- 3.fix parse auto_flake fix_code func param error

0.1.6

- Feature, support proto plugin feature

0.1

- Feature, add get desc from p2p
- Feature, add DescTemplate class
- Refactor, change pydantic validate param type (datetime -> float)

0.0.3

- Feature, add simple get desc from pgv
- Feature, support gpv other validation by pydantic validator
- Feature, Any, Duration, Enum, Timestamp, Repeated, Map and one of support

0.0.2

- Fix, fix parse_method_by_protobuf not support TAIL comment
- Feature, support customer field.type and field.default_factory
- Feature, support module path
- Refactor, refactor gen model func -> class

Page 1 of 2

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.