datastore

Data

__name__ = NeuroTools.datastore

Functions

check_dependency(name)

Classes

DjangoORMDataStore

Persistent data store using the Django ORM to store/retrieve keys/indices information with data stored using pickle on the filesystem.

__del__(self)

__init__(self, database_parameters, data_root_dir)

retrieve(self, component, attribute_name)

store(self, component, attribute_name, data)


ShelveDataStore

Persistent data store based on the shelve module and the filesystem.

__init__(self, root_dir, key_generator=<function join_with_underscores at 0x5fd8cf0>)

root_dir is a filesystem directory below which all shelve files will be saved. key_generator is a function that accepts a mapping and returns a string.

retrieve(self, component, attribute_name)

store(self, component, attribute_name, data)