An open API service indexing awesome lists of open source software.

https://github.com/irusland/iprotopy

Automatic .proto to python dataclasses code generation
https://github.com/irusland/iprotopy

dataclasses-python protobuf

Last synced: 9 months ago
JSON representation

Automatic .proto to python dataclasses code generation

Awesome Lists containing this project

README

          

# iprotopy

`iprotopy` is a Python project designed to generate source files from Protocol Buffers (protos) using the `PackageGenerator` class.

##

```python
import logging
from pathlib import Path

from iprotopy import PackageGenerator

logging.basicConfig(level=logging.DEBUG)

if __name__ == '__main__':
generator = PackageGenerator()
base_dir = Path().absolute().parent

generator.generate_sources(
proto_dir=base_dir / 'protos',
out_dir=base_dir / 'package',
)

```

## Features

- Generates source files from Protocol Buffers.
- Packages the generated sources for easy usage.

```sh
pip install iprotopy

```

## Development
### Installation