Schema (data_tools.schema)#

Schema is a module which composes a set of classes and objects to abstractly construct a filesystem-like API

File API#

File(*, data, file_type, canonical_path, ...)

An atomic unit of data, described by data, a file type describing the data stored, and a canonical path denoting its location in some filesystem-like storage.

CanonicalPath(origin, source, event, name)

FileType(value[, names, module, qualname, ...])

Discretize the valid types of data that a File is supported to contain.

Data Handling#

Result(result, result_type)

Algebraic datatype that can either represent a successful result of some operation, or a failure.

UnwrappedError

DataSource API#

DataSource(*args, **kwargs)

Abstract base class for data sources.

FileLoader(loader, canonical_path)

A callable object that wraps a lambda function to acquire a File, as well as the canonical path that will be queried for the File in question.

Event(start, stop[, name, attributes, flags])

Represents an event that took place between start and stop (accessible as datetime.datetime objects or as ISO 8601 formatted strings), with a name and optionally any additional attributes such as attributes["realtime"] or attributes["test"].