Source code for qewton.config.saving.schema_keys

ALLOWED_MODULE_PREFIXES = ("qewton.",)


[docs] class SavingKeys: """Helper class that defines the keys used in the saving and loading process.""" KEY_VERSION = "version" #: Format of the files written now. Version 1 (before structured dtypes) #: is still loaded, see `Serializable.upgrade`. VERSION = 2 KEY_TYPE = "type" KEY_VALUES = "values" KEY_COMPRESSED = "compressed" KEY_LIST = "list" KEY_TUPLE = "tuple" KEY_DICT = "dict" KEY_SET = "set" KEY_ENUM = "enum" KEY_CLASS_OBJ = "class_obj" KEY_SERIALIZABLE = "serializable" KEY_CLASS = "class" KEY_SELF_ARGS = "self_args" KEY_MODULE = "module" KEY_ELLIPSIS = "..." KEY_BACKEND_PARAMETER = "backend_param" KEY_SLICE = "slice" NODE_ID = "node_id" NODE_MODE = "node_mode" NODE_STATE = "node_state" FILE_CONFIG = "config.json" FILE_DATA = "data.json" FILE_PARAMETERS = "parameters"