meavis.filesystem.utils module

Utility classes for the filesystem mechanism.

class meavis.filesystem.utils.Metadata(manager, access=None)[source]

Bases: meavis._detail.sqlite.SQLiteAccess, collections.abc.MutableMapping

Proxy for the metadata of a dataset.

__init__(manager, access=None)[source]

Initialise a proxy from the current selected dataset.

items()[source]

Provide a view of all metadata.

values()[source]

Get all metadata.

clear()[source]

Delete all metadata.

update(mapping)[source]

Update multiple of metadata.

class meavis.filesystem.utils.Setup(loader_mapping, access=None)[source]

Bases: meavis._detail.sqlite.SQLiteAccess, collections.abc.Iterable

A group of MeaVis file descriptions.

__init__(loader_mapping, access=None)[source]

Initialise required loaders and connection to the filesystem.

Initialisation from a loader mapping and connection.

add(filename, loader_kind)[source]

Add a file to the Setup.

seal(key)[source]

Seal the group inside the filesystem.

Return the corresponding group id.