purplecaffeine.LocalStorage

class LocalStorage(path=None)[source]

Local storage.

Creates local storage for storing trial data at local folder.

Example

>>> storage = LocalStorage("./")
Parameters:

path (Optional[str]) – path for the local storage folder

__init__(path=None)[source]

Creates local storage for storing trial data at local folder.

Example

>>> storage = LocalStorage("./")
Parameters:

path (Optional[str]) – path for the local storage folder

Methods

__init__([path])

Creates local storage for storing trial data at local folder.

get(trial_id)

Read a given trial file.

list([query, limit, offset])

Returns list of trials.

save(trial)

Saves given trial.