Can I force the use of HTTP APIs instead of gRPC? Can these libraries be installed where there is no gRPC support? #12687
Closed
Indavelopers
started this conversation in
General
Replies: 1 comment
-
to
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, thanks for checking this issue.
I'm trying to use several GC Client Libraries for Python in a different environment, PyScript.
PyScript uses Pyodide and WebAssembly to bring Python to the browser client-side.
In order to use PyScript/Pyodide in the browser, you need a pure Python wheel, or build one yourself. The problem is Pyodide uses a different distribution and architecture, for web assembly, installed via micropip (more info).
I'm working to build pure Python wheels for web assembly (docs), but I'm finding myself at a stop.
Most of GC Client Libraries for Python list gRPC as a requirement, e.g. sometimes as
google-api-core[grpc]
.I believe I've read that these libraries fall back to HTTP if gRPC is not available, but my problem is that, if I'm not mistaken, they try to install grpcio library locally, which throws an error in PyScript/Pyodide/Web Assembly environments, as there is no grpcio library available for this architecture, nor seems to be possible as for now to execute gRPC calls from the browser (at least using grpcio).
Therefore, my questions are:
Looking forward to ideas and responses, thanks!
Beta Was this translation helpful? Give feedback.
All reactions