waft.warp_client.warp_client_factory module

class waft.warp_client.warp_client_factory.WarpClientFactory(node: BaseNode)

Bases: object

WarpClientFactory class serves as a factory for creating warp client handler instances

get_warp_client_handler() WarpClientHandler

Retrieves the WarpClientHandler instance appropriate for the system’s platform.

This method looks up the system’s platform in the platform-to-handler mapping and instantiates the corresponding WarpClientHandler with the system as its argument.

Returns:

An instance of a subclass of WarpClientHandler appropriate for the system’s platform.

Raises:

KeyError: If the system’s platform is not supported or mapped to a handler.