a google cloud storage memory backend for joblib
Project description
joblibgcs
A google cloud storage memory backend for joblib
import numpy as np
from joblib import Memory, register_store_backend
from joblibgcs.gcs_backend import GCSFSStoreBackend
register_store_backend("gcs", GCSFSStoreBackend)
mem = Memory(
"cache-location",
backend="gcs",
verbose=100,
backend_options={"project": "project-name"},
)
multiply = mem.cache(np.multiply)
array1 = np.arange(10000)
array2 = np.arange(10000)
result = multiply(array1, array2)
print(result)
result2 = multiply(array1, array2)
print(result2)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
joblibgcs-0.2.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for joblibgcs-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3f4b3c3bcf1cb2395d72e49808bbbe599f99cd749bd5bf0d0b04304748cd683 |
|
MD5 | 10cfe4ced449688bc4e684bbbd68e7b1 |
|
BLAKE2b-256 | 5848b77b77e9f1b2e21288f42da5f3a105bb43dabd82151c12271611fc81b0b4 |