TODO: Add description
If available in Hex, the package can be installed
by adding protobuf
to your list of dependencies in mix.exs
:
def deps do
[
{:protobuf, "~> 0.1.0"}
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/protobuf.
To generate a python code test/integration/integrationtest_pb2.py
for integration tests from .proto
files:
$ docker run --rm -v $(pwd):/app niku/pytnoh3-protobuf \
protoc \
-I test/integration/proto \
--python_out=test/integration/python \
test/integration/proto/integrationtest.proto
To generate json files based on protocol buffer messages for integration tests from test/integration/input.yaml
:
$ docker run --rm -v $(pwd):/app niuk/python3-protobuf \
python3 test/integration/python/generate_messages.py
An object in json includes key that is expected value and value that is base64 encoded protocol buffer message representation.