data_baseisf_data_baseISFDataBaseget

ISFDataBase.get

data_base.isf_data_base.ISFDataBase.get(key, lock=None, \*\*kwargs)

Get data from the database.

This is the main method to get data from a DataBase. This method allows to pass additional arguments to the Loader. Modules in LoaderDumper make use of this feature if they require additional arguments in their load() method.

This method is thread safe, if you provide a lock.

Parameters:
  • key (str) – The key to get from the database.

  • lock (Lock, optional) – If you use file locking, provide the lock that grants access. Defaults to None.

  • **kwargs – Additional arguments to pass to the Loader.

Returns:

The object saved under db[key]

Return type:

object