Skip to content

Client base

EventStoreDB client.

ClientBase

Source code in src/eventstore_grpc/core/client_base.py
class ClientBase:
    def __init__(self, transport: "Transport") -> None:
        """Initializes a ClientBase.

        Args:
            transport: an instance of a Transport Class.
        """
        self._transport = transport

    @property
    def channel(self):
        """The gRPC channel from the underlying transport class."""
        return self._transport.channel

channel property

The gRPC channel from the underlying transport class.

__init__(transport)

Initializes a ClientBase.

Parameters:

Name Type Description Default
transport Transport

an instance of a Transport Class.

required
Source code in src/eventstore_grpc/core/client_base.py
def __init__(self, transport: "Transport") -> None:
    """Initializes a ClientBase.

    Args:
        transport: an instance of a Transport Class.
    """
    self._transport = transport