finesse.datastore

Finesse datastore tools.

The datastore is intended for objects that should be cached during the execution of the current Python kernel. Code typically uses this instead of the more bug-prone singleton pattern (see #260).

Functions

getfield(key)

Get value with key key.

hasfield(key)

Determine if the datastore key key exists.

init_singleton(cls, *args, **kwargs)

Instantiate cls and return the object for the current and future calls.

invalidate([key])

Invalidate the datastore.

setfield(key, value[, overwrite])

Initialize a field with key key and value value.