Skip to content
Back to top
View this page

# ServiceRemote

class dsviper.ServiceRemote

  Bases: `object`

  A class used to connect to a remote service. Use the static factory method connect(…) or connect_local(…).

  Note: Not directly instantiable.

  attachment_function_pool_funcs(pool_id_or_name: ValueUUId | str) → ServiceRemoteAttachmentFunctionPoolFunctions | None

    Return functions or None.

  attachment_function_pools() → list[ServiceRemoteAttachmentFunctionPool]

    Return a list of pools.

  attachment_pools → ServiceRemoteAttachmentFunctionPools

    all attachment function pools.

  close() → None

    Close the service.

  static connect(host: str, service: str, definitions: Definitions) → ServiceRemote

    Connect to a remote service.

  static connect_local(socket_path: str, definitions: Definitions) → ServiceRemote

    Connect to a service located at socket_path.

  definitions() → DefinitionsConst

    Return the definitions.

  function_pool_funcs(pool_id_or_name: ValueUUId | str) → ServiceRemoteFunctionPoolFunctions | None

    Return functions or None.

  function_pools() → list[ServiceRemoteFunctionPool]

    Return a list of pools.

  is_closed() → bool

    Return True if the service is closed.

  peername() → str

    Return the peername.

  pools → ServiceRemoteFunctionPools

    all function pools.

  sockname() → str

    Return the sockname.

  to_dsm_definitions() → DSMDefinitions

    Return the DSMDefinitions of the service.