frequenz-floss / frequenz-client-base-python

Base gRPC client
https://frequenz-floss.github.io/frequenz-client-base-python/
MIT License
0 stars 3 forks source link

Add parsing of gRPC channel URIs #51

Closed llucax closed 5 months ago

llucax commented 6 months ago

Add a new module channel with a function to parse URIs to create grpclib client Channel instances. For now the URI provides only very basic options, but it can be extended in the future.

The main idea for this is to abstract ourselves from the channel class in the client, for one side to ease the transition to betterproto/grpclib but also because we will soon need an easy way to configure secure channels too, so just host/port won't be enough. Using URIs is pretty flexible as one can pass arbitrary options via query strings.

llucax commented 5 months ago

Updated to fix the typo.