meds.storage

read files from disk.

Exceptions

ENODIR
class Storage[source]

Bases: meds.object.Object

all(*args, **kwargs)[source]

sort all files in the workdir, sort based on timestamp in the filename.

find(prefix, *args)[source]

find all objects stored with a prefix subdirectory.

first(*args, **kwargs)[source]

return first object matching provided prefix.

last(*args, **kwargs)[source]

return last record with a matching prefix.

prefixed(*args, **kwargs)[source]

return all filename in a workdir subdirectory, the ‘prefix’.

scan(path, *args, **kwargs)[source]

scan all files in the cfg.main.workdir directory.

selected(event)[source]

select objects based on a parsed event.

since(start, *args, **kwargs)[source]

return all object since a given time.