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.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 dvc-pandas 0.4.1
File Size Uploaded
dvc_pandas-0.4.1.tar.gz 192.0 kB Details

Built distribution (wheel)

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

Total release size: 207.8 kB

Release files / dvc_pandas-0.4.1.tar.gz

Download URL dvc_pandas-0.4.1.tar.gz
Size 192.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d75d1193b693136933a40174a5d08be32c0a8188584e930e73ca53711b6daf1c
BLAKE2b-256 checksum
How to use checksums
8198728dee14f5f082ab8a665a73a1d04f2fec6bd845c8a129394b234b4c7e88
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.1-py3-none-any.whl

Download URL dvc_pandas-0.4.1-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4bf580aff545ee438d0f81c823b19d60cf0487f51cdd4d03155c901ad0a964d0
BLAKE2b-256 checksum
How to use checksums
809df8dff87ffe4321b73ae9e714b696c29968a2256518e657a9046d93513be4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.5

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.19

1 release file

0.0.18

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

1 release file

0.0.13

2 release files

0.0.12

2 release files

0.0.11

1 release file

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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