Skip to main content

to disk caching of compute

Project description

maybe-compute

License PyPI Python Version CI codecov

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

maybe_compute-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

maybe_compute-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

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

Hashes for maybe_compute-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cbbf4b672c463554ec5bb1688ee35f21613ae9935199b262bb3f0aa102fb6bfd
MD5 23cca69773bc30113cad3edfdb6564c7
BLAKE2b-256 644653ef0f56f107b018cebfd88860b944f260462d664c9480587b66a9b120f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for maybe_compute-0.1.0.tar.gz:

Publisher: release.yml on ianhi/maybe-compute

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for maybe_compute-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c17d69e0d751b51cab54ce122f31dd6555582a60d309ef07528ed685a25c6e4
MD5 0cf37f93bb8a5a2fc66794dc351ab793
BLAKE2b-256 dcb60565a900982eea31b210e680f9335cca9b4bad9844222a8b022cc9ae5e16

See more details on using hashes here.

Provenance

The following attestation bundles were made for maybe_compute-0.1.0-py3-none-any.whl:

Publisher: release.yml on ianhi/maybe-compute

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page