25 releases (15 stable)

6.7.3 Mar 27, 2024
6.7.2 Nov 21, 2023
6.7.1 Jul 21, 2023
6.6.4 Feb 22, 2023
6.3.0 Nov 2, 2021

#381 in Network programming

Download history 30/week @ 2024-02-19 24/week @ 2024-02-26 120/week @ 2024-03-04 21/week @ 2024-03-11 1/week @ 2024-03-18 164/week @ 2024-03-25 43/week @ 2024-04-01

235 downloads per month
Used in 3 crates

Apache-2.0

350KB
7K SLoC

CITA Cloud Proto

Design grpc interface for each Micro Service.

Usage

[dependencies]
cita_cloud_proto = { git = "https://github.com/cita-cloud/cita_cloud_proto" }

Generate python code

pip install grpcio grpcio-tools
mkdir python
cd python
python3 -m grpc_tools.protoc -I../protos --python_out=. --grpc_python_out=. ../protos/blockchain.proto
python3 -m grpc_tools.protoc -I../protos --python_out=. --grpc_python_out=. ../protos/common.proto
python3 -m grpc_tools.protoc -I../protos --python_out=. --grpc_python_out=. ../protos/consensus.proto
python3 -m grpc_tools.protoc -I../protos --python_out=. --grpc_python_out=. ../protos/executor.proto
python3 -m grpc_tools.protoc -I../protos --python_out=. --grpc_python_out=. ../protos/controller.proto
python3 -m grpc_tools.protoc -I../protos --python_out=. --grpc_python_out=. ../protos/network.proto
python3 -m grpc_tools.protoc -I../protos --python_out=. --grpc_python_out=. ../protos/storage.proto
python3 -m grpc_tools.protoc -I../protos --python_out=. --grpc_python_out=. ../protos/crypto.proto

Dependencies

~11MB
~193K SLoC