Source code for aerovaldb.types

from enum import Enum, auto

from .routes import *


[docs] class AccessType(Enum): """Enumeration of access types. Specifies how data will be read and returned. * JSON_STR: Result will be returned as an unparsed json string. * FILE_PATH: Result will be returned as the file path to the file containing the data. * OBJ: The json will be parsed and returned as a python object. * URI: A string which is a unique identifier of this asset between implementations of Aerovaldb. Can be used with :meth:`aerovaldb.AerovalDB.get_by_uuid` and :meth:`aerovaldb.AerovalDB.put_by_uuid` to read or write respectively. * MTIME: The timestamp for last modification for the resource will be returned (as datetime.datetime). * CTIME: The creation timestamp for the resource will be returned (as datetime.datetime) """ JSON_STR = auto() FILE_PATH = auto() OBJ = auto() URI = auto() BLOB = auto() MTIME = auto() CTIME = auto()