Skip to main content

Dask-checkpoint

Dask-checkpoint is a Python package that adds a customizable caching capabilities to dask. It builds on top of dask.delayed, adding load and save instructions to the dask graph.

from dask_checkpoint import Storage, task

storage = Storage.from_fsspec("my_directory")


@task(save=True)
def add_one(x):
    return x + 1


x0 = add_one(1).compute()  # computed
with storage():
    x1 = add_one(1).compute()  # computed and saved to storage
    x2 = add_one(1).compute()  # loaded from storage
x3 = add_one(1).compute()  # recomputed, not loaded from storage

assert x0 == x1 == x2 == x3

Installation

Dask-checkpoint can be installed from PyPI:

pip install dask-checkpoint

Getting started

Check out the tutorial to see Dask-checkpoint in action.

Development

To set up a development environment in a new conda environment, run the following commands:

git clone https://github.com/maurosilber/dask-checkpoint
cd dask-checkpoint
conda env create -f environment-dev.yml
pre-commit install

Run tests locally with tox:

tox

or, if you have mamba installed:

CONDA_EXE=mamba tox

Metadata

Release files for dask-checkpoint 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dask-checkpoint 0.2.1
File Size Uploaded Provenance Actions
dask_checkpoint-0.2.1.tar.gz 15.2 kB Without provenance Details for dask_checkpoint-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dask-checkpoint 0.2.1
File Interpreter ABI Platform Actions
dask_checkpoint-0.2.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for dask_checkpoint-0.2.1-py2.py3-none-any.whl

Total release size: 27.9 kB

Release files / dask_checkpoint-0.2.1.tar.gz

Download URL dask_checkpoint-0.2.1.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
334c52953796e2ab749a655b590e1057cf146ca319d7d07a562f7dccf5e85924
BLAKE2b-256 checksum
How to use checksums
6cd4e6ff55d6d298d0ffb9641732c007e9542f74a342b68215a7dbe0a2dee50d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release files / dask_checkpoint-0.2.1-py2.py3-none-any.whl

Download URL dask_checkpoint-0.2.1-py2.py3-none-any.whl
Size 12.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
83842ed0bc8e71b04c4a7d1eeaeeb9cbfc6c4c625baf760af9881501a1515f3f
BLAKE2b-256 checksum
How to use checksums
c4e93cf9679d3a908d31ee43e58f1d284c084f9b3a975a05a3379867f412e957
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Security for dask-checkpoint 0.2.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page