Skip to main content

🦞 providence

Providence logo

providence is a Python package for reproducible dataset loading and source tracking. Load a local table or a Hugging Face dataset, record where it came from, and save a checkpoint that can reload the same data.

Use Providence to load data before splitting it with Eluent or computing features with Aspect. You can also checkpoint a split or feature table you already have.

Installation

Providence requires Python 3.11 or later. To install from GitHub, run:

python -m pip install 'git+https://github.com/scbirlab/providence.git'

Python

DataResolver accepts local files such as CSV, TSV, and Parquet, as well as pandas DataFrames, dictionaries of columns, and Hugging Face datasets. The loaded Hugging Face dataset is available as .data, and .data_source holds its source metadata.

from providence import DataResolver

resolved = DataResolver("measurements.csv")
resolved.save("measurements.checkpoint")

restored = DataResolver.load("measurements.checkpoint")
print(restored.data.num_rows)
print(restored.data_source.to_config())

By default, save() embeds local or in-memory data as Parquet. The checkpoint stores a SHA-256 checksum and verifies the embedded file on reload. For a local file that will remain available at its original path, use save_source_data=False to save a reference and verify the source file when you reload.

Command line

Use providence get to write a checkpoint, export a table, or do both:

providence get measurements.csv --checkpoint measurements.checkpoint --output measurements.parquet

The CLI saves a source reference by default. Add --force-write-data to embed the table in the checkpoint.

For Hub datasets, use hf://datasets/OWNER/DATASET. Append @REVISION, ~CONFIG, and :SPLIT as needed. For example:

providence get 'hf://datasets/stanfordnlp/imdb@main:train' --checkpoint imdb-train.checkpoint

Providence resolves the requested Hub revision to a commit SHA and records the pinned reference in the checkpoint. Reloading that checkpoint uses the recorded commit even if the branch has moved.

Issues, problems, suggestions

Please open an issue on GitHub.

License

MIT

Metadata

Release files for providence 0.0.2

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

Source distribution (sdist)

Source distribution for providence 0.0.2
File Size Uploaded Provenance Actions
providence-0.0.2.tar.gz 18.0 kB Without provenance Details for providence-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for providence 0.0.2
File Interpreter ABI Platform Actions
providence-0.0.2-py3-none-any.whl Python 3 none any Details for providence-0.0.2-py3-none-any.whl

Total release size: 35.5 kB

Release files / providence-0.0.2.tar.gz

Download URL providence-0.0.2.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8acff7e18fc38ddb44a032d05764a414f39c2caf7e3f38d6fe1bda3fd38fed0e
BLAKE2b-256 checksum
How to use checksums
e28af6ed2d0579373d34624b845f13c86b4d60b8078546b28b6d654af42dd5cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / providence-0.0.2-py3-none-any.whl

Download URL providence-0.0.2-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
661c3072f305189eb0c134c53aea680df0a50097be8f5e9efd134bdcd700f6fa
BLAKE2b-256 checksum
How to use checksums
2e595d3edc8c014bb7f06460ae18a3684e943d601700da363ccbf720390a7f86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for providence 0.0.2

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.0.2 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