Skip to main content

damicore-normalizer

damicore-normalizer turns an input source into canonical objects, recording the size and SHA-256 of every one. Objects come from one of two sources: a dataset split by column or by row -- delimited text (.csv, .tsv, .txt) or an .xlsx/.xlsm worksheet -- or a set of files that already are the objects. It is the first 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 materialize objects without the rest of the pipeline.

pip install damicore-normalizer

Python

from damicore_normalizer import (
    DelimitedSource,
    FileCorpusSource,
    NormalizationConfig,
    SpreadsheetSource,
    materialize_objects,
)

# Split a delimited file. Any single character is a delimiter, so a tab-separated
# `.txt` is this same source with `delimiter="\t"`.
result = materialize_objects(
    "dataset.csv",
    "normalization",
    config=NormalizationConfig(source=DelimitedSource(split="columns"), chunk_rows=50_000),
)

# Split a worksheet. `sheet` is required when the workbook holds more than one.
spreadsheet = materialize_objects(
    "dataset.xlsx",
    "normalization-xlsx",
    config=NormalizationConfig(source=SpreadsheetSource(split="columns")),
)

# Adopt files that already are the objects. No split, delimiter, or encoding.
corpus = materialize_objects(
    "corpus",
    "normalization-files",
    config=NormalizationConfig(source=FileCorpusSource(recursive=True)),
)

A delimited source streams through pandas.read_csv and a worksheet streams through openpyxl in read-only mode; both bound open column files with an LRU pool. A file corpus is copied in and hashed, so the run directory stays self-contained. Every source writes the objects plus a manifest.json into the output directory, and that manifest is the input the sibling damicore-distance distribution consumes to compute the NCD matrix.

The manifest records object_encoding -- json-lines/1 for a split dataset, raw-bytes/1 for adopted files -- because an NCD value is only meaningful relative to the bytes it measured.

Licensed under Apache-2.0.

Metadata

Release files for damicore-normalizer 0.2.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-normalizer 0.2.0
File Size Uploaded Provenance Actions
damicore_normalizer-0.2.0.tar.gz 22.7 kB With provenance Details for damicore_normalizer-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for damicore-normalizer 0.2.0
File Interpreter ABI Platform Actions
damicore_normalizer-0.2.0-py3-none-any.whl Python 3 none any Details for damicore_normalizer-0.2.0-py3-none-any.whl

Total release size: 49.5 kB

Release files / damicore_normalizer-0.2.0.tar.gz

Download URL damicore_normalizer-0.2.0.tar.gz
Size 22.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f3c7a26a2ec225453d8a443b356cdb2bab1d35014ac74d6e2ed808950dfd2994
BLAKE2b-256 checksum
How to use checksums
03770bfa6220bca87c9af97d821c510521cbb994519447f433e059fda1a5ae44
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 13, 2026.

Transparency log

Release files / damicore_normalizer-0.2.0-py3-none-any.whl

Download URL damicore_normalizer-0.2.0-py3-none-any.whl
Size 26.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fa4bb0183153965382145a3d57b417fb3d1d268a3c16e9614c1df9c4e91980f
BLAKE2b-256 checksum
How to use checksums
d24098b848980b0d1254a10f83fb21fded3a5ea50348a5b639a2471a5dcaad49
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 13, 2026.

Transparency log

Security for damicore-normalizer 0.2.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_normalizer-0.2.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 13, 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