NullStorageHandler#

class NullStorageHandler(path)[source]#

Storage handler for no file access.

Does not save or load any results, used when no path is provided.

Saving has no effect, and load will always return empty data.

Parameters:
pathstr, or Path coercible

The path to the file to save to or load. Ignored, exists for API compatibility.

Methods

is_applicable(path)

Check if the storage handler is applicable for the given path.

load()

Load the results from a file.

save(results)

Save the results - dummy method without any effect.

save(results: list[ResultObject])[source]#

Save the results - dummy method without any effect.

Parameters:
resultsResultObject

The results to save.

static is_applicable(path)[source]#

Check if the storage handler is applicable for the given path.

Parameters:
pathstr

The path to the file to save to or load

Returns:
bool

True if the storage handler is applicable for the given path.

load() list[ResultObject][source]#

Load the results from a file.

Returns:
list[ResultObject]

The loaded results. Returns empty list if file doesn’t exist.