florist.api.servers.config_parsers module¶
Parsers for FL server configurations.
- class BasicConfigParser[source]¶
Bases:
object
Parser for basic server configurations.
- class ConfigParser(value)[source]¶
Bases:
Enum
Enum to define the types of server configuration parsers.
- BASIC = 'BASIC'¶
- classmethod class_for_parser(config_parser)[source]¶
Return the class for a given config parser.
- Parameters:
config_parser (
ConfigParser
) – (ConfigParser) The config parser enumeration instance.- Return type:
- Returns:
(type[BasicConfigParser]) A subclass of BasicConfigParser corresponding to the given config parser.
- Raises:
ValueError – if the config_parser is not supported.