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
Metadata
Release files for maybe-compute 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| maybe_compute-0.1.0.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| maybe_compute-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / maybe_compute-0.1.0.tar.gz
| Download URL | maybe_compute-0.1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cbbf4b672c463554ec5bb1688ee35f21613ae9935199b262bb3f0aa102fb6bfd
|
|
BLAKE2b-256 checksum How to use checksums |
644653ef0f56f107b018cebfd88860b944f260462d664c9480587b66a9b120f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2025.
Transparency logRelease files / maybe_compute-0.1.0-py3-none-any.whl
| Download URL | maybe_compute-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c17d69e0d751b51cab54ce122f31dd6555582a60d309ef07528ed685a25c6e4
|
|
BLAKE2b-256 checksum How to use checksums |
dcb60565a900982eea31b210e680f9335cca9b4bad9844222a8b022cc9ae5e16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 2, 2025.
Transparency log