Skip to main content

dvc-pandas

Loading from persisted source manifests

For pinned sources, resolve metadata once with Git available and persist the Pydantic model as JSON:

from dvc_pandas import Repository

repo = Repository(repo_url, dvc_remote="storage")
repo.set_target_commit(commit_sha)
manifest = repo.get_manifest(["transport/activity"])
stored_json = manifest.model_dump_json()

A later process can download and load the same datasets without constructing a Git or DVC repository:

from dvc_pandas import DatasetLoader, RepositoryManifest

manifest = RepositoryManifest.model_validate_json(stored_json)
loader = DatasetLoader(cache_root="/cache/dataset-objects")
loader.prefetch(manifest.datasets.values())  # Download only; no Parquet decoding.
dataset = loader.load(manifest.datasets["transport/activity"])
assert dataset.manifest == manifest.datasets["transport/activity"]

Manifest transport currently supports local filesystem and S3 DVC remotes, including legacy and current DVC object layouts. Other remotes continue through the existing Git-backed loader, without manifest provenance. Object URLs are resolved by DVC when exporting a manifest; the downloader does not guess the remote layout. Manifests contain full commit IDs, file hashes, metadata and non-secret endpoint/region settings. Credentials are supplied through the normal S3 environment/provider chain or DatasetLoader(storage_options=...) using fsspec options; they are not serialized. Local remote paths must remain accessible on the machine loading the manifest.

Downloads are checked against the manifest MD5, locked per content hash, and published atomically. Existing local content-addressed files are trusted. cache_root is the directory containing the two-character hash subdirectories. Repository-backed loads use DVC's current local object directory; standalone loaders default to dataset-objects under the dvc-pandas user cache. Pass the same cache root to share files between loaders.

Dataset.manifest records source provenance and is also preserved by copy(); it does not identify subsequent in-memory edits. Datasets constructed from a DataFrame have no manifest unless one is explicitly supplied through DatasetMeta. Effective loaded units and index columns retain the existing fallback to metadata embedded in Parquet.

The manifest format is versioned. Repository manifests describe the requested subset of datasets, not necessarily the entire repository. Callers own persistence, refresh policy for moving references, and selection of runtime credentials.

Run the full test suite:

uv run pytest

Metadata

Release files for dvc-pandas 0.4.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 dvc-pandas 0.4.2
File Size Uploaded Provenance Actions
dvc_pandas-0.4.2.tar.gz 192.9 kB Without provenance Details for dvc_pandas-0.4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dvc-pandas 0.4.2
File Interpreter ABI Platform Actions
dvc_pandas-0.4.2-py3-none-any.whl Python 3 none any Details for dvc_pandas-0.4.2-py3-none-any.whl

Total release size: 209.4 kB

Release files / dvc_pandas-0.4.2.tar.gz

Download URL dvc_pandas-0.4.2.tar.gz
Size 192.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e5e55adf9dc2207d9106632b1ebc15eed29f424b6550d0e898167ea7a0a8afb7
BLAKE2b-256 checksum
How to use checksums
54940c553510d49a36eb6799ea02b146269296a756768c16690f3778a8991838
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.5

Release files / dvc_pandas-0.4.2-py3-none-any.whl

Download URL dvc_pandas-0.4.2-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50483fcbe887b3deb9198f0e74d0ad3114c244cbaf28853149bc8d7c175526e8
BLAKE2b-256 checksum
How to use checksums
920e2073d092f32133e1136cdb7f6379930bb27cc15cf9b924633ebdf8d6d9d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.5

Security for dvc-pandas 0.4.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.4.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