to disk caching of compute
Project description
maybe-compute
To disk caching of computationally intensive functions.
Usage
from maybe_compute import maybe_compute, set_maybe_compute_folder
import xarray as xr
import numpy as np
def dataset_maker(a, b):
"this docstring shows thanks to functools.wraps!"
return xr.Dataset({"images":xr.DataArray(np.random.randn(10,20)*a +b, dims=('a','b'))})
set_maybe_compute_folder('sign-flip-cartoon')
maybe_compute(dataset_maker, 'yikes.nc')(4,5)
Install
I strongly recommend pinning to a known version as the API may change dramatically until version 1.0 is published.
pip install maybe-compute==0.1.0
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file maybe_compute-0.1.0.tar.gz.
File metadata
- Download URL: maybe_compute-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbbf4b672c463554ec5bb1688ee35f21613ae9935199b262bb3f0aa102fb6bfd
|
|
| MD5 |
23cca69773bc30113cad3edfdb6564c7
|
|
| BLAKE2b-256 |
644653ef0f56f107b018cebfd88860b944f260462d664c9480587b66a9b120f8
|
Provenance
The following attestation bundles were made for maybe_compute-0.1.0.tar.gz:
Publisher:
release.yml on ianhi/maybe-compute
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
maybe_compute-0.1.0.tar.gz -
Subject digest:
cbbf4b672c463554ec5bb1688ee35f21613ae9935199b262bb3f0aa102fb6bfd - Sigstore transparency entry: 737367996
- Sigstore integration time:
-
Permalink:
ianhi/maybe-compute@2228914f2a8a9d67a1fe6156dd7ee1016fc07121 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/ianhi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2228914f2a8a9d67a1fe6156dd7ee1016fc07121 -
Trigger Event:
release
-
Statement type:
File details
Details for the file maybe_compute-0.1.0-py3-none-any.whl.
File metadata
- Download URL: maybe_compute-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c17d69e0d751b51cab54ce122f31dd6555582a60d309ef07528ed685a25c6e4
|
|
| MD5 |
0cf37f93bb8a5a2fc66794dc351ab793
|
|
| BLAKE2b-256 |
dcb60565a900982eea31b210e680f9335cca9b4bad9844222a8b022cc9ae5e16
|
Provenance
The following attestation bundles were made for maybe_compute-0.1.0-py3-none-any.whl:
Publisher:
release.yml on ianhi/maybe-compute
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
maybe_compute-0.1.0-py3-none-any.whl -
Subject digest:
6c17d69e0d751b51cab54ce122f31dd6555582a60d309ef07528ed685a25c6e4 - Sigstore transparency entry: 737367998
- Sigstore integration time:
-
Permalink:
ianhi/maybe-compute@2228914f2a8a9d67a1fe6156dd7ee1016fc07121 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/ianhi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2228914f2a8a9d67a1fe6156dd7ee1016fc07121 -
Trigger Event:
release
-
Statement type: