skillfed

dvc-data

DVC's data management subsystem

dvc-data v3.18.3 2.1M downloads/30d#3,291 on PyPI18
Permissive license Apache-2.0 Active released

What it is and what it does

dvc-data is DVC's data management subsystem, providing the core abstractions for storing, indexing, and verifying data files. It implements hash-based file objects (HashFile) similar to Git's object model, object databases (HashFileDB) that verify contents by hash, and a trie-like index structure (DataIndex) that maps file paths to metadata and storage locations. The package abstracts storage backends through pluggable ObjectStorage and FileStorage implementations, allowing DVC to work with different underlying filesystems via fsspec.

The library is designed as a low-level building block for data pipeline tools. It handles the mechanics of content-addressed storage—storing files by their hash digest and verifying integrity—while remaining agnostic about where or how data is actually persisted. Developers typically use it indirectly through DVC itself, though it can be imported directly for custom data management workflows.

Use it for:

  • Building data pipelines that need to verify file integrity using hash-based content addressing
  • Implementing custom data storage backends that integrate with DVC workflows
  • Creating reproducible data indexes that track file metadata and storage locations
  • Developing tools that require trie-based hierarchical data organization with hash verification

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides data storage and indexing abstractions for DVC, including hash-based file verification, object databases, and trie-like data indexes with pluggable storage backends.

Yes, if you are building on top of DVC or need hash-based file verification and content-addressed storage abstractions. The package is actively maintained, has low install friction, and carries no known vulnerabilities. However, it is marked Beta, so APIs may shift; verify compatibility with your DVC version before depending on it in production.

Install

dvc-data on PyPI

pip

pip install dvc-data

uv

uv add dvc-data

poetry

poetry add dvc-data

Installing dvc-data

Before you install

Low install friction with a pure-Python wheel and active maintenance; last commit 2026-08-10 with 168 days since release. Ten runtime dependencies are all established packages.

License in practice

Apache 2.0 permissive license allows use in most commercial and open-source projects without significant restrictions.

Quickstart

pip install dvc-data

from dvc_data.hashfile import HashFile, HashFileDB
from dvc_data.index import DataIndex, DataIndexEntry

index = DataIndex()
index[("foo",)] = DataIndexEntry(hash_info=hash_info, meta=meta)

Requires Python 3.9 or later; dvc-objects must be installed as a runtime dependency.

Verify before relying

  • Whether HashFile and HashFileDB are stable APIs or still subject to breaking changes given Beta status
  • Performance characteristics and scalability limits for large indexes or storage backends
  • Compatibility guarantees with specific versions of dvc-objects and fsspec

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 10 — attrs, dictdiffer, diskcache, dvc-objects, fsspec, funcy, pygtrie, sqltrie, tqdm, orjson
Maintenance actively maintained — 168 days since the last release
Last repo commit
First released
Downloads 2,107,583/month — #3,291 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: dvc_data-3.18.3-py3-none-any.whl

Development Status :: 4 - BetaProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9

Tags

dvc data managementhash-based file storagedata indexing and verificationobject databasecontent-addressed storage
content-addressed-storagedata-indexingdvc-ecosystem

More Database packages