zeebe Python gRPC Gateway
Project description
zeebe Python gRPC gateway files
This package contains two gRPC Gateway Files needed to build a zeebe-client or a zeebe-worker (https://zeebe.io/) with Python.
Both files were generated following the instructions on this (now outdated) blog post: https://zeebe.io/blog/2018/11/grpc-generating-a-zeebe-python-client/
How to install and use this package?
pip install zeebe-grpc
import grpc
from zeebe_grpc import gateway_pb2, gateway_pb2_grpc
with grpc.insecure_channel("zeebe:26500") as channel:
stub = gateway_pb2_grpc.GatewayStub(channel)
topology = stub.Topology(gateway_pb2.TopologyRequest())
print(topology)
How to (re)build the Python gRPC?
wget https://raw.githubusercontent.com/zeebe-io/zeebe/0.20.0/gateway-protocol/src/main/proto/gateway.proto -O ./zeebe_grpc/gateway.proto
python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. ./zeebe_grpc/gateway.proto
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
zeebe_grpc-0.21.1.1.tar.gz
(10.4 kB
view hashes)
Built Distribution
Close
Hashes for zeebe_grpc-0.21.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a31d4e0961a4365fc91118f75f0e8c0ff10af99b09761a82f60a7709e5fec1f |
|
MD5 | 381798eda03b268ece50da3eae6dd70a |
|
BLAKE2b-256 | 9f8726d9d52299dd421f4b8c9692d0ff3bcc93922c780942120578bea7a6353e |