Skip to main content

DVC's data management subsystem

Project description

PyPI Status Python Version License

Tests Codecov pre-commit Black

Features

  • TODO

Requirements

  • TODO

Installation

You can install DVC data via pip from PyPI:

$ pip install dvc-data

Usage

HashFile

HashFile

Based on dvc-object’s Object, this is an object that has a particular hash that can be used to verify its contents. Similar to git’s ShaFile.

from dvc_data.hashfile import HashFile

obj = HashFile("/path/to/file", fs, HashInfo("md5", "36eba1e1e343279857ea7f69a597324e")

HashFileDB

Based on dvc-object’s ObjectDB, but stores HashFile objects and so is able to verify their contents by their hash_info. Similar to git’s ObjectStore.

from dvc_data.hashfile import HashFileDB

odb = HashFileDB(fs, "/path/to/odb")

Index

Index

A trie-like structure that represents data files and directories.

from dvc_data.index import DataIndex, DataIndexEntry

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

Storage

A mapping that describes where to find data contents for index entries. Can be either ObjectStorage for HashFileDB-based storage or FileStorage for backup-like plain file storage.

index.storage_map[("foo",)] = ObjectStorage(...)

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the Apache 2.0 license, DVC data is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dvc_data-3.18.2.tar.gz (84.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dvc_data-3.18.2-py3-none-any.whl (79.3 kB view details)

Uploaded Python 3

File details

Details for the file dvc_data-3.18.2.tar.gz.

File metadata

  • Download URL: dvc_data-3.18.2.tar.gz
  • Upload date:
  • Size: 84.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dvc_data-3.18.2.tar.gz
Algorithm Hash digest
SHA256 71c0bf7e62514dbad06db796a3f3aac5ccae672222b6be67029157e4efa5d359
MD5 c99d1d1c2d4e083ffacc36c4bc3f4fee
BLAKE2b-256 ab7ffa1be22d32ccf49fb605cad410182f85c744bbfc51e5759141f0a7eaad64

See more details on using hashes here.

Provenance

The following attestation bundles were made for dvc_data-3.18.2.tar.gz:

Publisher: release.yml on treeverse/dvc-data

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dvc_data-3.18.2-py3-none-any.whl.

File metadata

  • Download URL: dvc_data-3.18.2-py3-none-any.whl
  • Upload date:
  • Size: 79.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dvc_data-3.18.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a8114b5bb909823793c63f1de7db30acc5cc7cc0e170704d99a3d9dccc0101e9
MD5 d49dc169525c66212c52be19aeb8d63c
BLAKE2b-256 a55bb7c2bdc92193ff1cae5aad747c1f2ee310a685a8dbfbbb2f4f3e3f87d6ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for dvc_data-3.18.2-py3-none-any.whl:

Publisher: release.yml on treeverse/dvc-data

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page