Metadata-Version: 2.4
Name: proto_pretty
Version: 0.0.1a5
Summary: A protoc plugin for generating idiomatic Python interfaces for protocol buffers
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: protobuf>=5.0
Provides-Extra: compiler
Requires-Dist: black>=24.1.0; extra == "compiler"
Requires-Dist: jinja2>=3.1.6; extra == "compiler"

# Proto Pretty

A protoc plugin for generating idiomatic Python interfaces for protocol buffers.

## Installation

Install in development mode:

```bash
git clone <repo>
cd proto_pretty
uv sync
```

## Usage

Use with protoc by specifying the `--python_pretty_out` option:

```bash
protoc --python_out=. --python_pretty_out=. your_file.proto
```

This generates:
- `your_file_pb2.py` (standard protoc output)
- `your_file_pretty.py` (idiomatic Python interface)

## Development

Run all checks (tests and static analysis)

```bash
mise check
```

To save generated files during tests for inspection:

```bash
mise test --save -s
```
