I don't see a way that this would work without significant effort. For 
starters, gRPC expects to be run on top of Linux, Windows, or MacOS. There 
are some forks that make the stack work on BSD, but that's not much 
different from Linux. Based on some quick investigation 
<https://micropython.org/>, Micropython is not only the interpreter, but 
also the operating system. You'd have to rewrite the lower layers of the 
Python gRPC stack to hook into the Micropython networking stack.

The second difficulty is that gRPC Python is implemented as a C extension. 
That is, the majority of the codebase is actually in C++, not Python. We 
offer a from-source distribution, but you'd likely have to play with things 
to get a cross-compilation environment set up properly.

There *is *an unofficial gRPC Python stack implemented in pure Python 
<https://github.com/vmagamedov/grpclib>. I haven't used it personally, so I 
can't vouch for it, but it's possible that it would be easier to get it to 
run on Micropython.

On Friday, September 10, 2021 at 9:25:08 AM UTC-7 Ofir wrote:

> Hi,
> Is there a known way to use GRPC in micropython?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/142e1f4a-5156-4b67-8250-2c1445103d53n%40googlegroups.com.

Reply via email to