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

Functions

MaestralConfig(config_name: str) → UserConfig

Returns existing config instance or creates a new one.

MaestralState(config_name: str) → UserConfig

Returns existing state instance or creates a new one.

maestral.config.main.logger[source]
maestral.config.main.CONFIG_DIR_NAME = maestral[source]
maestral.config.main.DEFAULTS_CONFIG = [None, None, None, None][source]
maestral.config.main.DEFAULTS_STATE = [None, None, None][source]
maestral.config.main.CONF_VERSION = 13.0.0[source]
maestral.config.main.MaestralConfig(config_name: str) → UserConfig[source]

Returns existing config instance or creates a new one.

Parameters

config_name – 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.

maestral.config.main.MaestralState(config_name: str) → UserConfig[source]

Returns existing state instance or creates a new one.

Parameters

config_name – 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.