Datamonger 
Datamonger retrieves public research datasets in Python. It downloads and caches dataset files, returns pandas data frames and SciPy sparse matrices, and verifies that the decoded values match those in the registry. R and Julia clients share the same registry and verification contracts.
Each dataset has a versioned record describing its source, format, provenance, license, and citations. You can pin the registry and dataset version to keep an analysis reproducible.
Installation
Install from PyPI with Python 3.11 or newer:
python -m pip install datamonger
Prebuilt wheels are available for Linux, macOS, and Windows. Installing a wheel requires no Rust compiler. Source builds require a stable Rust toolchain and a C linker.
Usage
Load a dataset by its source:name reference:
from datamonger import fetch_data
iris = fetch_data("uci:iris")
heart = fetch_data("libsvm:heart_scale")
Delimited datasets return a pandas.DataFrame. LIBSVM datasets return a
SparseDataset with a SciPy CSR features matrix and a NumPy response
vector:
print(iris.head())
print(heart.features.shape, heart.response.shape)
Datasets with train/test splits return a SparseDatasetSplit with separate
train and test fields. Datasets with provider-named splits return a
DatasetSplits mapping, accessed with keys such as data["train"] and
data["validation"]. Datamonger preserves each split's row membership.
Files are downloaded on first use and kept in a verified local cache. The registry index is bundled with the package, so you can browse metadata without network access. Dataset files are downloaded separately.
Use list_data() to browse the registry, data_info() to inspect a dataset's
metadata, and cite_data() to retrieve its citations without downloading data:
from datamonger import cite_data, data_info, list_data
datasets = list_data()
info = data_info("uci:iris")
print(info.license)
print(cite_data("uci:iris"))
To retrieve a verified file without decoding it, use fetch_artifact():
from datamonger import fetch_artifact
iris_csv = fetch_artifact("uci:iris")
This returns a pathlib.Path in the cache. For datasets with several artifacts,
select one explicitly, for example with artifact="train". Files retain their
registered format and compression.
Reproducibility
Select an explicit dataset version and retain the verification metadata with your analysis:
result = fetch_data("uci:iris@1", return_info=True)
iris = result.data
print(result.info.dataset_id)
print(result.info.registry_release, result.info.registry_index_sha256)
print(result.info.canonical_digest)
return_info=True wraps the decoded data with its resolved identity, registry
selector, artifact digests, and decoded-verification record. Datamonger checks
artifact sizes and SHA-256 hashes, then verifies decoded shapes and a canonical
SHA-256 digest.
Dataset operations also accept separate arguments, such as
fetch_data("iris", source="uci", version="1"). Omit source for qualified
references and omit version when the reference embeds it. Without a version,
Datamonger uses the registry's declared default.
Pin a project's registry by checking its selector into
.datamonger/selector.json. To obtain a selector for a published release, use
an explicit catalog lookup:
from datamonger import resolve_registry
registry = resolve_registry("1.4.0")
print(registry.release, registry.index_sha256, registry.index_url)
iris = fetch_data("uci:iris@1", registry=registry)
A project selector records those fields and a schema version:
{
"schema_version": 1,
"release": "<registry.release>",
"index_sha256": "<registry.index_sha256>",
"index_url": "<registry.index_url>"
}
Replace the placeholders with the resolved values. Keep that selector with your analysis; looking up the release name again is not a cryptographic pin.
Registry selection follows this order: a registry= argument, a session setting
from set_registry(), the nearest project selector, and the bundled registry.
Use active_registry() to inspect the current selection and
set_registry(None) to clear a session setting. Registry updates are always
explicit.
See the trust model for verification guarantees and their limits.
Offline use and caching
Once a dataset is cached, reuse it without network access:
iris = fetch_data("uci:iris@1", offline=True)
Offline mode keeps the same registry selection and requires valid cached files.
The bundled registry index is always available. Missing or corrupt cached
artifacts raise OfflineError; unavailable registry indexes raise
RegistryOfflineError. Both are exported from datamonger.errors.
Inspect the cache or remove the artifacts for a dataset version:
from datamonger import cache_clean, cache_info
info = cache_info()
print(info.location, info.total_size)
cache_clean(dataset="uci:iris@1")
cache_clean() also accepts an older_than duration. Calling it without
filters selects the entire cache. Entries in use by another process are skipped,
and Datamonger never evicts files automatically. Pass cache_dir= consistently
to cache operations to use a custom location.
Documentation
- Documentation website—guides and API references.
- Dataset catalog—available datasets and retrieval examples.
- Project repository—R, Julia, and CLI clients, specifications, and architecture.
- Changelog—Python client release notes.
Citation
If you use Datamonger in your research, please cite the release you used. Select
that release in the Zenodo archive
and export its citation. To cite Datamonger generally, use the concept DOI
10.5281/zenodo.23692468.
Use cite_data() for dataset citations. Dataset metadata also preserves
upstream citation instructions and references.
Contributing
See the contributor guide for development setup and how to add or revise datasets. To install from a repository checkout, run this command from the repository root:
python -m pip install ./packages/python
License
Datamonger is licensed under the MIT license. Datasets retain their own licenses and terms, recorded in their registry metadata.
Metadata
Release files for datamonger 0.4.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 | Provenance | Actions |
|---|---|---|---|---|
| datamonger-0.4.0.tar.gz | 1.1 MB | With provenance | Details for datamonger-0.4.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| datamonger-0.4.0-cp311-abi3-win_amd64.whl | CPython 3.11 | abi3 | Windows x86-64 | Details for datamonger-0.4.0-cp311-abi3-win_amd64.whl |
| datamonger-0.4.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.11 | abi3 | Linux glibc 2.17+ x86-64 | Details for datamonger-0.4.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
| datamonger-0.4.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.11 | abi3 | Linux glibc 2.17+ ARM64 | Details for datamonger-0.4.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
| datamonger-0.4.0-cp311-abi3-macosx_11_0_arm64.whl | CPython 3.11 | abi3 | macOS 11.0+ ARM64 | Details for datamonger-0.4.0-cp311-abi3-macosx_11_0_arm64.whl |
| datamonger-0.4.0-cp311-abi3-macosx_10_12_x86_64.whl | CPython 3.11 | abi3 | macOS 10.12+ x86-64 | Details for datamonger-0.4.0-cp311-abi3-macosx_10_12_x86_64.whl |
Total release size: 7.7 MB
Release files / datamonger-0.4.0.tar.gz
| Download URL | datamonger-0.4.0.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7806139e8eee08f11caffe0306bf2393aabc3f39b9d155f82fff908f5e69a276
|
|
BLAKE2b-256 checksum How to use checksums |
f76c816abcad9bd2c507fba390b3f244d7bb04c3083d3834ba4d3b2b78fecc17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / datamonger-0.4.0-cp311-abi3-win_amd64.whl
| Download URL | datamonger-0.4.0-cp311-abi3-win_amd64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.11 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
6d69ebd7f12d71b1c6735f9c699310050af497af57224e76a075ecb359f461ff
|
|
BLAKE2b-256 checksum How to use checksums |
4a804568b9a74c3825fdd6d8df2b68fdddbd2e1cec51f79e3c4b851e53e2300a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / datamonger-0.4.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | datamonger-0.4.0-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
2099d3b380863bf62f0a95c04b523d54dbd6d6cef0e312dd932347456010c617
|
|
BLAKE2b-256 checksum How to use checksums |
868da9f7f0ec0c5ac8ff5a8ddaaa3e0dd42094d436e30343e927648beb3c6018
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / datamonger-0.4.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | datamonger-0.4.0-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
e6eb4b1bbc7782626a091a3b6addfd80bc789595548d4548668d0823a778d1cc
|
|
BLAKE2b-256 checksum How to use checksums |
b21aab20f5abe937d2ee3f51730433c6b1aa10d223c61d026ead0856bcf19d1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / datamonger-0.4.0-cp311-abi3-macosx_11_0_arm64.whl
| Download URL | datamonger-0.4.0-cp311-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.11 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
4100b0569765f9c3a5c90643c20fa3db9b548a4791942b18813209fb93096e1f
|
|
BLAKE2b-256 checksum How to use checksums |
a66c4e34a50a2125667a2a533c4030e145f052c8a0f75a8d24554cc3407c90a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logRelease files / datamonger-0.4.0-cp311-abi3-macosx_10_12_x86_64.whl
| Download URL | datamonger-0.4.0-cp311-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.11 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
04fe09561984cc39d50328dd6dd40250d1e704136624197886866429a3f8bfed
|
|
BLAKE2b-256 checksum How to use checksums |
46f3af0ce9199b605a9aa9baa8fe3cd85ddf4315e75f27ba88c0e4d2beb10e8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 23, 2026.
Transparency logSecurity for datamonger 0.4.0
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.
Full provenance
All 6 files in this release have been uploaded with provenance metadata.
Attestation for datamonger-0.4.0.tar.gz
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 Nov 23, 2026.
Transparency logA 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.