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.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 providence 0.0.1
File Size Uploaded Provenance Actions
providence-0.0.1.tar.gz 17.6 kB Without provenance Details for providence-0.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 34.3 kB

Release files / providence-0.0.1.tar.gz

Download URL providence-0.0.1.tar.gz
Size 17.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3b9574b1f6dc36fa4238084e053b6febd48e9a5ee9fba0432591138180a64d4a
BLAKE2b-256 checksum
How to use checksums
55d39d278af2b366f3100b7553c4a599bf3ea58f6e7263e3b4822168556bd7ac
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.1-py3-none-any.whl

Download URL providence-0.0.1-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea1027e3f1c11d5c6e6eebfcf386d828016c88fa58219da73c492d07fa4e4597
BLAKE2b-256 checksum
How to use checksums
ec695bec0507f7b6c008cd22a4d7bbea9eecffc801d5334f88aef5a5a3bd9aa7
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.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.0.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