Skip to main content

dvc data

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-1.7.0.tar.gz (66.4 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-1.7.0-py3-none-any.whl (64.0 kB view details)

Uploaded Python 3

File details

Details for the file dvc-data-1.7.0.tar.gz.

File metadata

  • Download URL: dvc-data-1.7.0.tar.gz
  • Upload date:
  • Size: 66.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for dvc-data-1.7.0.tar.gz
Algorithm Hash digest
SHA256 194678c4d53d5f2dbd4a40f5632d1d0fca1b781d0aca48345d1c59d0c72f7dda
MD5 45cd3657a7676b14819312ba439ad94d
BLAKE2b-256 25d33206094ca4b0737c88ca97d3f7a744871f43a14b9db7eeee93c5fbd6c86d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dvc_data-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 64.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.4

File hashes

Hashes for dvc_data-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb8271026afe2e44d5eca6ef4ca7e656da6fb0c8e27eede9e3acaa409126dd9c
MD5 931b50555f25c2554fdd1697120b4944
BLAKE2b-256 3bebadd3e75ac6aa895c9a89f05f9d6e9c7d821c5901662c0284c7b11bcab216

See more details on using hashes here.

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