Python port of DataManifest.jl — declare and manage data dependencies for scientific projects
Project description
datamanifest[py]
Keep track of the datasets used in a scientific project. You declare your data
dependencies — URLs, git repositories, checksums, formats — in a
datamanifest.toml file; datamanifest downloads, verifies, extracts and loads
them, and caches your own computed results with the same machinery.
- A transparent, trackable manifest. Every dataset a project depends on —
URLs, DOIs, checksums (content hashes used to verify each file), formats — is
listed in a single
datamanifest.tomlfile (the manifest) that you can read directly and version with git. The format is defined by a language-agnostic spec (implemented in Python and Julia) and can be edited by hand, from code, or through the CLI. - Fetch from a wide range of sources. Direct URLs, Zenodo/figshare and PANGAEA
DOIs, git repos, object stores (
s3://,gs://, …), and bulk imports from pooch, intake or DVC — all checksum-verified, extracted, and adopted in place when already on disk. - Cache your own computed data too. The same tooling backs a
@cacheddecorator that stores your own results with PID-lock, keyed by their inputs, to speed up calculations locally. Caching is a separate, local concern — nothing is fetched — but cached results are managed through the same CLI as datasets. - A CLI for data download, local management and synchronization across
machines. Add and download datasets, inspect and repair what's on disk, move
or centralize where data is stored, and push/pull datasets and cached results
between machines over rsync+ssh — all without touching your analysis code. A
git-ignored state file (
.datamanifest/state.toml) records where each object actually landed on this machine, keeping local location tracking separate from the portable, shareable manifest.
Installation
pip install datamanifestpy
With optional loader backends (csv, parquet, nc, yaml, fsspec, or
all):
pip install "datamanifestpy[all]"
See the installation page for the per-backend details.
Quickstart
datamanifest init # create datamanifest.toml here
datamanifest add https://gml.noaa.gov/webdata/ccgg/trends/co2/co2_annmean_mlo.csv --name co2
datamanifest list # what's tracked, and where it lives
datamanifest path co2 # resolve the on-disk path (for a script)
Then load it from your code:
import datamanifest
db = datamanifest.Database("datamanifest.toml")
df = db.load_dataset("co2") # download on first use, then load
path = db.get_dataset_path("co2") # just the on-disk path
Commit datamanifest.toml — the recipe of what to fetch and how. The data
lives in a machine-wide shared store (deduplicated across your projects) and
the private .datamanifest/ directory stays git-ignored; a collaborator clones
and runs datamanifest download. See the
quickstart for the full
walkthrough.
Documentation
Full documentation lives at https://perrette.github.io/datamanifest/:
- Installation
- Quickstart
- Using it from your code —
load_dataset,@cached, the file-lessDatabase - Use cases — add, repair, store, sync
- CLI reference
- Storage model · Configuration
- Adding datasets · Importing from other tools
- Language bindings · Related projects
From the same author
A few other open-source tools I maintain.
Scientific writing & data
- texmark — write scientific articles in Markdown and convert them to journal-ready LaTeX/PDF.
- papers — command-line BibTeX bibliography and PDF library manager.
Speech to Text (dictate) and Text to Speech (read-aloud) tools
Acknowledgments
datamanifest is a Python port of
awi-esc/DataManifest.jl, written
by the same author (Mahé Perrette). The Python port was implemented with
assistance from Anthropic's Claude.
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 datamanifestpy-0.19.2.tar.gz.
File metadata
- Download URL: datamanifestpy-0.19.2.tar.gz
- Upload date:
- Size: 347.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
012a5a9849b5f2678825cabfedb1272c6b803e485e8d9347113157ec9980fad9
|
|
| MD5 |
64805768a2c7b1d641d6cd8c5c30521a
|
|
| BLAKE2b-256 |
8648ddd013555e076b12fa4a130d81440f540fbfd198f8cbc86694701b06dee5
|
Provenance
The following attestation bundles were made for datamanifestpy-0.19.2.tar.gz:
Publisher:
ci.yaml on perrette/datamanifest
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datamanifestpy-0.19.2.tar.gz -
Subject digest:
012a5a9849b5f2678825cabfedb1272c6b803e485e8d9347113157ec9980fad9 - Sigstore transparency entry: 1854586059
- Sigstore integration time:
-
Permalink:
perrette/datamanifest@2e2bc6ab3ccced9aa0e569c16dac748ab8bc9a3b -
Branch / Tag:
refs/tags/v0.19.2 - Owner: https://github.com/perrette
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yaml@2e2bc6ab3ccced9aa0e569c16dac748ab8bc9a3b -
Trigger Event:
push
-
Statement type:
File details
Details for the file datamanifestpy-0.19.2-py3-none-any.whl.
File metadata
- Download URL: datamanifestpy-0.19.2-py3-none-any.whl
- Upload date:
- Size: 158.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db563da030c7dc5b9573c61b4119ac9e2ff0a4bd732aac1560cd5654f416404d
|
|
| MD5 |
6162cc88311f5492161fd69f3b8219ca
|
|
| BLAKE2b-256 |
ea7ba95c61bf983433d863f91d52dd847134661f75ca926e166db33e82bc6288
|
Provenance
The following attestation bundles were made for datamanifestpy-0.19.2-py3-none-any.whl:
Publisher:
ci.yaml on perrette/datamanifest
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datamanifestpy-0.19.2-py3-none-any.whl -
Subject digest:
db563da030c7dc5b9573c61b4119ac9e2ff0a4bd732aac1560cd5654f416404d - Sigstore transparency entry: 1854586075
- Sigstore integration time:
-
Permalink:
perrette/datamanifest@2e2bc6ab3ccced9aa0e569c16dac748ab8bc9a3b -
Branch / Tag:
refs/tags/v0.19.2 - Owner: https://github.com/perrette
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yaml@2e2bc6ab3ccced9aa0e569c16dac748ab8bc9a3b -
Trigger Event:
push
-
Statement type: