Skip to main content

Built-in file format descriptors (HDF5, CAX) for the vcti-path-format identification framework

Project description

Path Format Descriptors

Built-in file format descriptors (HDF5, CAX) for the vcti-path-format identification framework.

Installation

pip install vcti-path-format-descriptors>=1.1.0

In pyproject.toml dependencies

dependencies = [
    "vcti-path-format-descriptors>=1.1.0",
]

Quick Start

from pathlib import Path

from vcti.pathformat import FormatRegistry, FormatIdentifier
from vcti.pathformat.descriptors import register_all_formats

# Register all built-in format descriptors
registry = FormatRegistry()
register_all_formats(registry)

# Identify a file
identifier = FormatIdentifier(registry)
results = identifier.identify_file_format(Path("data.h5"))

Individual descriptors

from vcti.pathformat.descriptors import get_hdf5_file_descriptor, get_cax_file_descriptor

registry = FormatRegistry()
registry.register(get_hdf5_file_descriptor())
registry.register(get_cax_file_descriptor())

Built-in Formats

HDF5

Property Value
ID hdf5-file
Signature \x89HDF\r\n\x1a\n (8 bytes)
Extensions .h5, .hdf5
Validators Magic bytes (GATE) + Extension (EVIDENCE)
Attributes path_type=file, structure=hdf5

VCollab CAX

Property Value
ID vcti-cax
Signature \x89VCF\r\n\x1a\n (8 bytes)
Validators Magic bytes (GATE)
Attributes path_type=file, structure=binary, generator=VCollab

Dependencies

Project details


Download files

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

Source Distribution

vcti_path_format_descriptors-1.1.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

vcti_path_format_descriptors-1.1.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file vcti_path_format_descriptors-1.1.0.tar.gz.

File metadata

File hashes

Hashes for vcti_path_format_descriptors-1.1.0.tar.gz
Algorithm Hash digest
SHA256 8826e0eb55a793ca0ce9707debb68fb229e8509ca7103ef6cd76ea9b70aacd94
MD5 32a8bd58431b8b5cfc240f4a013523a2
BLAKE2b-256 15a0b174c523b360c62db2473e573fc8272fa2c1df1ff4e7dc0cdd435a4864d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for vcti_path_format_descriptors-1.1.0.tar.gz:

Publisher: publish.yml on vcollab/vcti-python-path-format-descriptors

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

File details

Details for the file vcti_path_format_descriptors-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for vcti_path_format_descriptors-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c49e1ce373f692ab48c3114a6ea150d9eb4485914244939bb106f1d5c78f8d3
MD5 7ce5de3cb1d853dbf06721eb06456bfa
BLAKE2b-256 8d0985ee326bb508de93f3a5332156642d2e47e17bd227d44519ce0079d3ab87

See more details on using hashes here.

Provenance

The following attestation bundles were made for vcti_path_format_descriptors-1.1.0-py3-none-any.whl:

Publisher: publish.yml on vcollab/vcti-python-path-format-descriptors

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