Questions tagged [grpc-python]

Python implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first.

gRPC is an open source remote procedure call (RPC) system initially developed at Google. It uses HTTP/2 for transport, Protocol Buffers as the interface description language, and provides features such as authentication, bidirectional streaming and flow control, blocking or nonblocking bindings, and cancellation and timeouts.

gRPC Basics - Python

401 questions
0
votes
0 answers

Calling gRPC Server from Python Client

I have to create a Python Flask Service which loads an image from an URL and sends it to a C# GRPC Service. Both services have to run in Docker later. For now, I just want to run them on localhost. The server requires no authorization or…
0
votes
2 answers

Unable to run gauge test - connectex: No connection could be made because the target machine actively refused it

I am developing some tests with gauge and python but on running specs i am getting connections error, I checked gauge error and find that grpc is opening connection on 65271 and error is thrown for port 65268. Am i missing something (its my first…
ImranRazaKhan
  • 1,955
  • 5
  • 33
  • 74
0
votes
1 answer

How to set grpc response in json list

I have this grpc response: elem {'a': 1, 'b': 2} elem {'a': 5, 'b': 10} I want to make it as [ {'a': 1, 'b': 2}, {'a': 5, 'b': 10} ] How to do it in my flask project?
A.Sana
  • 95
  • 2
  • 14
0
votes
1 answer

gRPC Python Server calling Client?

I think I understand the client-server structure in gRPC, but don't know how to enable the server to call RPCs on the client. Do I implement both Client & Server (figure both server & stubs) on both sides and have 2 separate channels afterwards or…
0
votes
0 answers

Python async grpc client stream handle

I am a newbie to python async GRPC and I came up with this to handle an async stream: async with grpc.aio.insecure_channel(target='localhost:6565', options=CHANNEL_OPTIONS) as channel: stub = get_results_grpc.ResultServiceStub(channel) …
Guifan Li
  • 165
  • 2
  • 14
0
votes
1 answer

python3 grpc compiler: how to handle absolute and relative imports in .protos?

I'm trying to generate working Python modules from the containerd API .proto files as to be found here: https://github.com/containerd/containerd/tree/master/api. Unfortunately, containerd's own .proto files contain references such as (in…
TheDiveO
  • 2,183
  • 2
  • 19
  • 38
0
votes
1 answer

Networking with gRPC

I'm trying to improve network performance between gRPC client and server. The client network speed is 1Gps, the Assuming my server takes 200ms to respond, and I measure the latency in the client. Now, if the server processing time goes up, say to…
user3599803
  • 6,435
  • 17
  • 69
  • 130
0
votes
1 answer

How to Make grpc monkey-patched code open v4 socket only. Its opening a v6 socket by default

I am a beginner in python and have been facing a problem. I am trying to create v4 only grpc server sockets based on the expectation that my code will need to run in ipv6 disabled environments. My problem is that the following code does NOT create…
codemos13
  • 1
  • 2
0
votes
1 answer

Can Python gRPC do computation when sending messages out?

Suppose I need to send a large amount of data from the client to the server using python gRPC. And I want to continue the rest computation when sending the message out instead of blocking the code. Is there any way can implement this? I will…
0
votes
1 answer

Compiling gRPC protobuf - "program not found or is not executable"

I am struggling to compile my .proto files to generate the gRPC stubs in Python. My current working directory is ./predictor. I have a simulator.proto file in the ./proto folder. The readme for the project I am working on says I should run protoc -I…
Saagar
  • 3
  • 2
0
votes
0 answers

Limit of RPCs per service

I am currently working on a client-server application using gRPC and Google Protocol Buffers. The client is meant to run on a Windows 10 PC and the server on an Linux ARM32 machine. After implementing a service with 10 RPCs on the server-side, I…
Andreea
  • 11
  • 2
0
votes
2 answers

Can't install Grakn Python client: ERROR: Command errored out with exit status 1

I am installing the latest Grakn client python with this command: pip3 install grakn-client However after a while during the install I get this error: ERROR: Command errored out with exit status 1:…
user7420209
  • 225
  • 2
  • 10
0
votes
1 answer

How to specify rpc queue size when use wait_for_ready

How to specify rpc queue size when use wait_for_ready in grpc-python
0
votes
1 answer

Getting ERR_INVALID_HTTP_RESPONSE while making grpc-web request to local server

I am trying grpc-web hello world program in an angular application, hitting a local python server via nginx and I am getting ERR_INVALID_HTTP_RESPONSE error in browser. I don't think the request is even hitting the nginx proxy. Though I am able to…
Synster
  • 329
  • 6
  • 16
0
votes
1 answer

GRPC Multiprocessing not working in Python

I'm trying grpc multiprocess example listed here on OSX - https://github.com/grpc/grpc/tree/74bba2c90a4f4607674a01ec1c0b634708fea887/examples/python/multiprocessing [PID 19271] Binding to 'localhost:50976' [PID 19292] Starting new server. [PID…
Sumit
  • 706
  • 1
  • 8
  • 16