Metadata-Version: 2.1
Name: proto-formatter
Version: 0.0.2
Summary: Protocol Buffers file formatter.
Home-page: https://github.com/YiXiaoCuoHuaiFenZi/proto-formatter
Author: YiXiaoCuoHuaiFenZi(一小撮坏分子)
Author-email: 249664317@qq.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/YiXiaoCuoHuaiFenZi/proto-formatter/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Provides-Extra: dev
License-File: LICENSE

# proto-formatter
Protocol Buffers file formatter.

## Install
```shell
pip install proto-formatter
```
## Usage
- Using default config: indents=2, equal_sign=False, all_top_comments=False
```python
from proto_formatter.parser import PackageParser
from proto_formatter.formatter import Formatter

protobuf_obj = parser.load(proto_file_path)
formatted_proto = Formatter().to_string(protobuf_obj)
```
- Specified value for all configs: indents=2, equal_sign=Ture, all_top_comments=False
```python
from proto_formatter.parser import PackageParser
from proto_formatter.formatter import Formatter

protobuf_obj = parser.load(proto_file_path)
formatted_proto = Formatter(equal_sign=True, indents=4, all_top_comments=True).to_string(protobuf_obj)
```

