eradiate.data.MultiDataStore#

class eradiate.data.MultiDataStore(stores=_Nothing.NOTHING)[source]#

Bases: DataStore

Chain requests on multiple data stores.

Calls to the fetch() method are successively redirected to each referenced data store. The first successful request is served.

Parameters:

stores (mapping, default: {}) – Data stores which will be queried successively.

Fields:

stores (collections.OrderedDict) – Data stores which will be queried successively.

fetch(filename, **kwargs)[source]#

Fetch a file from the data store.

Parameters:

filename (path-like) – File name to fetch from the data store, relative to the storage root.

Returns:

Path – Absolute path where the retrieved resource is located.

Raises:

DataError – The requested file could not be served.

registry_files(filter=None)[source]#

Returns an empty list (this data store has no registry).

property base_url#

Raises NotImplementedError (this data store has no target location).

property registry#

Raises NotImplementedError (this data store has no registry).