florist.api.clients.common module

Common functions and definitions for clients.

class Client(value)[source]

Bases: Enum

Enumeration of supported clients.

MNIST = 'MNIST'
classmethod class_for_client(client)[source]

Return the class for a given client.

Parameters:

client (Client) – (Client) The client enumeration object.

Return type:

type[BasicClient]

Returns:

(type[BasicClient]) A subclass of BasicClient corresponding to the given client.

Raises:

ValueError – if the client is not supported.

classmethod list()[source]

List all the supported clients.

Return type:

List[str]

Returns:

(List[str]) a list of supported clients.