maestral.config.main

This module contains the default configuration and state values and functions to return existing config or state instances for a specified config_name.

Module Contents

maestral.config.main.CONFIG_DIR_NAME = 'maestral'[source]
maestral.config.main.DEFAULTS_CONFIG: maestral.config.user._DefaultsType[source]
maestral.config.main.DEFAULTS_STATE: maestral.config.user._DefaultsType[source]
maestral.config.main.KEY_SECTION_MAP[source]
maestral.config.main.CONF_VERSION[source]
maestral.config.main.MaestralConfig(config_name)[source]

Returns an existing config instance or creates a new one.

Parameters:

config_name (str) – Name of maestral configuration to run. A new config file will be created if none exists for the given config_name.

Returns:

Maestral config instance which saves any changes to the drive.

Return type:

maestral.config.user.UserConfig

maestral.config.main.MaestralState(config_name)[source]

Returns an existing state instance or creates a new one.

Parameters:

config_name (str) – Name of maestral configuration to run. A new state file will be created if none exists for the given config_name.

Returns:

Maestral state instance which saves any changes to the drive.

Return type:

maestral.config.user.UserConfig