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.20.0.11.tar.gz
(10.4 kB
view hashes)
Built Distribution
Close
Hashes for zeebe_grpc-0.20.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 396c308c5d906719a752aa9f6aa327baccddbfbbf30e655f0ebd36611b696711 |
|
MD5 | 89b6b178a16c79fcadb494c7b063caab |
|
BLAKE2b-256 | 5e7acff59b14f78a492aa84d979c042c3d261a381ade7742a7f48bf750e160c6 |