Skip to content

v1.4.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@ProdByGodfather ProdByGodfather released this 20 Jul 13:30
· 12 commits to master since this release

Release v1.4.0 - Enhanced Proto Generation with Repeated and Map Fields Support

We are excited to announce the release of py2proto v1.4.0! This version brings significant improvements to our Protocol Buffer generation capabilities, enhancing the library's flexibility and power.

What's New

1. Support for Repeated Fields

  • Users can now define repeated fields using Python's List type.
  • The generator automatically translates List[Type] to repeated Type in the generated .proto file.

2. Map Fields Support

  • Introduced support for map fields using Python's Dict type.
  • Dict[KeyType, ValueType] is now correctly translated to map<KeyType, ValueType> in the .proto file.

3. Improved Type Mapping

  • Enhanced the internal type mapping system to better handle various Protocol Buffer data types.
  • Added support for additional Protocol Buffer types like sint32, sfixed64, etc.

4. Updated Documentation

  • Comprehensive README update with detailed usage examples.
  • Improved API documentation for better user understanding.