flatbuffers/grpc
Malar Kannan 6beb9f49cb Support for python grpc - continuing the work from the pull request #4270 #4705 (#5613)
* Support for python grpc

* add few fixes

* Fixes build

* Fix python generator

* Add tests

* Fix grpc python test

* Fix tests and add incomplete python generator

* Fix python generator

* Add python generator methods

* Fix Appveyor build

* grpc python support v0.1

* Update tests

* update grpctest

* Remove duplicated code and fix a brace

* tests for flatbuffers grpc python

* Updated tests + removed SerializeToString, From String

* remove pickle import

* include missing files in ci - BUILD and generated test result
2019-11-14 16:58:35 -08:00
..
flatbuffers-java-grpc Enforce matching version in Java and C#. 2019-05-31 12:15:19 -07:00
samples/greeter [C++] Improve flatbuffers + gRPC integration (#4310) 2017-06-07 13:56:49 -07:00
src/compiler Support for python grpc - continuing the work from the pull request #4270 #4705 (#5613) 2019-11-14 16:58:35 -08:00
tests Support for python grpc - continuing the work from the pull request #4270 #4705 (#5613) 2019-11-14 16:58:35 -08:00
README.md Add move semantics to MessageBuilder, FlatBufferBuilder, SliceAllocator, and vector_downward (#4893) 2018-08-30 16:43:22 -07:00
build_grpc.sh Turn on gRPC tests in travis build (#4955) 2018-10-01 15:59:04 -07:00
pom.xml Enforce matching version in Java and C#. 2019-05-31 12:15:19 -07:00

README.md

GRPC implementation and test

NOTE: files in src/ are shared with the GRPC project, and maintained there (any changes should be submitted to GRPC instead). These files are copied from GRPC, and work with both the Protobuf and FlatBuffers code generator.

tests/ contains a GRPC specific test, you need to have built and installed the GRPC libraries for this to compile. This test will build using the FLATBUFFERS_BUILD_GRPCTEST option to the main FlatBuffers CMake project.

Building Flatbuffers with gRPC

Linux

  1. Download, build and install gRPC. See instructions.
    • Lets say your gRPC clone is at /your/path/to/grpc_repo.
    • Install gRPC in a custom directory by running make install prefix=/your/path/to/grpc_repo/install.
  2. export GRPC_INSTALL_PATH=/your/path/to/grpc_repo/install
  3. export PROTOBUF_DOWNLOAD_PATH=/your/path/to/grpc_repo/third_party/protobuf
  4. mkdir build ; cd build
  5. cmake -DFLATBUFFERS_BUILD_GRPCTEST=ON -DGRPC_INSTALL_PATH=${GRPC_INSTALL_PATH} -DPROTOBUF_DOWNLOAD_PATH=${PROTOBUF_DOWNLOAD_PATH} ..
  6. make

Running FlatBuffer gRPC tests

Linux

  1. ln -s ${GRPC_INSTALL_PATH}/lib/libgrpc++_unsecure.so.6 ${GRPC_INSTALL_PATH}/lib/libgrpc++_unsecure.so.1
  2. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${GRPC_INSTALL_PATH}/lib
  3. make test ARGS=-V