plateau.core.utils module
- plateau.core.utils.ensure_store(store: str | KeyValueStore | Callable[[], KeyValueStore]) KeyValueStore[source]
Convert the
storeargument to aKeyValueStore, without pickle test.
- plateau.core.utils.lazy_store(store: str | KeyValueStore | Callable[[], KeyValueStore]) Callable[[], KeyValueStore][source]
Create a store factory from the input. Acceptable inputs are.
Storefact store url
Callable[[], KeyValueStore]
KeyValueStore
If a KeyValueStore is provided, it is verified that the store is serializable (i.e. that pickle.dumps does not raise an exception).