damicore
DAMICORE clusters the rows or columns of a local CSV without asking you to pick a feature representation or a number of clusters. It serializes each object canonically, measures every pair with exact Normalized Compression Distance (NCD), builds a deterministic Neighbor Joining tree, and cuts communities out of that tree with FastGreedy.
This distribution is the complete pipeline and the only one with a command line.
The four stage distributions — damicore-normalizer, damicore-distance,
damicore-tree-builder, damicore-clusterizer — are Python APIs that can be
installed and used on their own.
pip install damicore
Python
from damicore import ExecutionConfig, ResourceLimits, estimate, load_result, run
# `workers="auto"` opens a process pool whose workers re-import the calling module, so in a
# `.py` script this call must sit under the guard below. A notebook or REPL satisfies it too.
if __name__ == "__main__":
preview = estimate("dataset.csv", split="columns")
result = run(
"dataset.csv",
split="columns",
execution=ExecutionConfig(workers="auto", limits=ResourceLimits()),
)
result.membership
result.distance_matrix.head()
result.close()
restored = load_result(result.artifacts.run_dir)
estimate reports the exact cost of a run — objects, pairs, matrix bytes, working
memory, free disk — without creating anything. Call it before raising a limit.
Command line
damicore estimate dataset.csv --json
damicore run dataset.csv --split columns --output-dir ./results
damicore --version
Progress and the artifact paths go to stderr. Only estimate --json writes to
stdout, so a shell pipeline reads one JSON document and nothing else.
Exit codes
A failure is also one JSON line on stderr carrying a stable code, so a script can
branch on the status and log the reason.
| Status | Meaning |
|---|---|
| 0 | Completed |
| 2 | Configuration or input rejected, including a malformed CSV |
| 3 | A resource limit would be exceeded |
| 4 | An artifact failed validation |
| 5 | The output directory conflicts, or a checkpoint does not match |
| 130 | Interrupted; the run is resumable |
| 141 | Terminated by a broken pipe (the SIGPIPE convention), e.g. when piping to head |
Results
A run writes a versioned, hash-verified directory: the distance matrix as a
float64 .npy memory map, the tree as JSON and Newick, cluster membership as CSV
and JSON, plus a manifest and a report. load_result reopens it, and an
interrupted run resumes from its checkpoints to the same bytes a fresh run would
have produced.
Scale
The exact algorithm accepts at most 1,000 objects, 500,000 pairs and 512 MiB per
matrix by default. A multi-gigabyte CSV with tens of columns is feasible; the same
file split into millions of rows is rejected during preflight rather than after
hours of work. Streaming and memory maps bound RAM, but NCD stays quadratic and
Neighbor Joining cubic in the object count. Raise an individual ResourceLimits
field only after reading estimate.
Links
- Source, issues and full documentation: https://github.com/Delbem-Research-and-Innovation/damicore
- Licensed under Apache-2.0.
Metadata
Release files for damicore 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| damicore-0.1.0.tar.gz | 28.4 kB | With provenance | Details for damicore-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| damicore-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for damicore-0.1.0-py3-none-any.whl |
Total release size: 60.2 kB
Release files / damicore-0.1.0.tar.gz
| Download URL | damicore-0.1.0.tar.gz |
|---|---|
| Size | 28.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6713ec17fb727bfcf1e7826a6dc28d4a1635e6f76d6c19ad0ef1ce3108a9ff2c
|
|
BLAKE2b-256 checksum How to use checksums |
829ff96a95004c452b46bbfb38ecaf92dc77ee01537b002a74b02f9c55905938
|
| 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 logRelease files / damicore-0.1.0-py3-none-any.whl
| Download URL | damicore-0.1.0-py3-none-any.whl |
|---|---|
| Size | 31.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
492c588772c9cad5820d22f3f841706a751338aec338dfe1ac1fe3c35725c263
|
|
BLAKE2b-256 checksum How to use checksums |
aaa16484453bab7bac1a4fca2ca3326fd30cdf32afbc78d15a94eccdca18de0f
|
| 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 logSecurity for damicore 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.
Attestation for damicore-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 logA 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.