Protocol Buffers file formatter.
Project description
proto-formatter
Protocol Buffers file formatter.
Install
pip install proto-formatter
Usage
- Using default config: indents=2, equal_sign=False, all_top_comments=False
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
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
proto-formatter-0.0.2.tar.gz
(9.0 kB
view hashes)
Built Distribution
Close
Hashes for proto_formatter-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93580c36a4413e3012fa4fe4fc1d7cd7d7b8015000b6508ad1b7bab105127f72 |
|
MD5 | f4a45dca8067c9777fccffcf610a26cc |
|
BLAKE2b-256 | 69680e84cf5a4989208253c5a447f4bb238813da1723d8c46728243580f87861 |