HubChannel#

class cegalprizm.hub.HubChannel(connection_parameters: Optional[cegalprizm.hub.connection_parameters.ConnectionParameters] = None, token_provider=None)#

A Cegal Hub configured GRPC channel for use with a Cegal Hub Server.

Create a HubChannel which wraps a GRPC channel

Parameters
  • connection_parameters (ConnectionParameters, optional) – The connection paramaters for communicating with a Cegal Hub Server. Defaults to None.

  • token_provider – Most often an OidcClient object. Defaults to None.

close()#

Close the underlying GRPC channel.

property channel#

The GRPC channel associated with a running Cegal Hub Server.

Returns

The GRPC channel associated with a running Cegal Hub Server.

Return type

Channel

property connection_parameters#

The ConnectionParameters associated with a running Cegal Hub Server.

Returns

The ConnectionParameters associated with a running Cegal Hub Server.

Return type

ConnectionParameters

property token_provider#

The token provider associated with authenticating against a Cegal Hub Server.

Returns

Usually an OidcClient.

Return type

token_provider