Skip to main content

damicore-distance

damicore-distance computes an exact, unclamped, float64 Normalized Compression Distance (NCD) matrix from a normalization manifest. It is the second stage of the DAMICORE pipeline; most users install the aggregate damicore distribution, which runs all four stages end to end. Install this package alone to compute NCD matrices without the rest of the pipeline.

pip install damicore-distance

Python

from damicore_distance import DistanceConfig, compute_distance_matrix

result = compute_distance_matrix(
    "normalization/manifest.json",
    "run",
    config=DistanceConfig(compressor="zlib", workers="auto"),
)

The manifest is produced by the sibling damicore-normalizer distribution; the call writes distance.npy and labels.json, the inputs the sibling damicore-tree-builder distribution consumes. Compression is incremental, pairs are lexicographically sharded, only the coordinator writes the memory map, and compatible completed shards can resume.

DistanceMatrixView reads the matrix through NumPy slicing and shape with no extra dependency. Its two pandas conveniences, head() and to_pandas(), raise a DistanceError (missing_dependency_error) unless pandas is present; install it with pip install "damicore-distance[pandas]".

Licensed under Apache-2.0.

Metadata

Release files for damicore-distance 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for damicore-distance 0.1.0
File Size Uploaded Provenance Actions
damicore_distance-0.1.0.tar.gz 16.5 kB With provenance Details for damicore_distance-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for damicore-distance 0.1.0
File Interpreter ABI Platform Actions
damicore_distance-0.1.0-py3-none-any.whl Python 3 none any Details for damicore_distance-0.1.0-py3-none-any.whl

Total release size: 34.1 kB

Release files / damicore_distance-0.1.0.tar.gz

Download URL damicore_distance-0.1.0.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
30bd5a847e2fb33dab741479a01a866491e5fe31b77b520b2608c6c7b32a2476
BLAKE2b-256 checksum
How to use checksums
292abffd6dad5fa9348ed26b25ac42bf84589600afa792572a1eb8a2f0cbe021
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 12, 2026.

Transparency log

Release files / damicore_distance-0.1.0-py3-none-any.whl

Download URL damicore_distance-0.1.0-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46005b53048b51f1931860fdf9ac6515675ccac7b3a24728ef46e4e55fa80a00
BLAKE2b-256 checksum
How to use checksums
f6fcec399fb544173f9a6885024385d3d0170f250fc997c9af6d00b34447b054
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 12, 2026.

Transparency log

Security for damicore-distance 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for damicore_distance-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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