@classmethod
    def from_config(cls, config, prefix='depot.'):
        config = config or {}

        # Get preferred storage backend
        backend = config.get(prefix + 'backend', 'depot.io.local.LocalFileStorage')

        # Get all options
        prefixlen = len(prefix)
        options = dict((k[prefixlen:], config[k]) for k in config.keys() if k.startswith(prefix))

        # Backend is already passed as a positional argument
        options.pop('backend', None)
        return cls._new(backend, **options)
Creates a new depot from a settings dictionary.
dataset/ETHPy150Open amol-/depot/depot/manager.py/DepotManager.from_config