Skip to main content

A private, local LLM-powered data dictionary parser and entity mapper with automated cleaning.

Project description

dd-parser-cleaner

A modular data engineering framework designed to bridge the gap between messy data dictionaries and production-ready datasets using local LLMs (Llama 3.2) and vectorized deterministic rules.

💡 Why use this tool?

In enterprise data science, data preparation is often the most fragile link. Scripts are frequently undocumented, and "semantic drift" occurs when the logic used to clean data no longer aligns with the business's Data Dictionary. This leads to non-reproducible results and high technical debt.

dd-parser-cleaner solves this by creating a deterministic, auditable link between your documentation and your data. It is specifically designed to support the KMDS Data Helper ecosystem—leveraging enterprise-grade open-source tools like Pandas and local LLM runtimes to ensure every step of your data journey is documented, reproducible, and ready for production.

🎯 Our Guarantee

dd_parser_cleaner ensures that your data is ready for analytics or ML applications because:

  1. Strict Schema Integrity: It enforces a "Clean Bucket" policy via the Integrity Sync, purging undocumented "Ghost" columns to ensure every feature is semantically mapped to a Data Dictionary entry.
  2. Semantic Type Enforcement: It automatically casts raw strings into high-precision, nullable physical types (e.g., Int64, float, datetime) grounded in verified logical metadata, eliminating type-related crashes downstream.
  3. Deterministic Pipe Sequencing: It executes an idempotent, vectorized transformation sequence (Sync → Assessment → Filter → Impute → Derive) that prevents data contamination and ensures reproducible results.
  4. Audit-Ready Traceability: It generates a signed, synchronized operational matrix and a "Handshake" report, providing a 100% traceable link between source metadata and the final analytical payload.
  5. Metadata Discovery API: Provides a programmatic interface for notebooks to query semantic tags (e.g., Geographic, Financial) and entities, enabling seamless integration with downstream featurization and ML pipelines.

🚀 Quick Start

1. Classification (The Handshake)

Run the parser to align your data dictionary with your physical data headers and perform semantic classification:

uv run classify-entities --workspace ./tests

2. Cleaning (The Pipeline)

Run the cleaner to apply types, filters, and transformations grounded in the parser's metadata:

uv run clean-dataset --action full --workspace ./tests

For detailed documentation and custom logic implementation, see the documents/ directory and USER_GUIDE.md.

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

dd_parser_cleaner-0.4.1.tar.gz (39.4 kB view details)

Uploaded Source

Built Distribution

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

dd_parser_cleaner-0.4.1-py3-none-any.whl (52.2 kB view details)

Uploaded Python 3

File details

Details for the file dd_parser_cleaner-0.4.1.tar.gz.

File metadata

  • Download URL: dd_parser_cleaner-0.4.1.tar.gz
  • Upload date:
  • Size: 39.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dd_parser_cleaner-0.4.1.tar.gz
Algorithm Hash digest
SHA256 1a304e4ff2e69e1815fb0ce48893625f03529041ce1161fdbacf0cc31aa8b56e
MD5 ac3778ca44d0d39ae19e8b7d5d6e3961
BLAKE2b-256 1cce07ba622c7f74efe6a5f3ec4028dcebd3b00be858799aae7d7d0cc9a106e4

See more details on using hashes here.

File details

Details for the file dd_parser_cleaner-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: dd_parser_cleaner-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 52.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dd_parser_cleaner-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f557a160e06efe91cace717ab42c2d488323c5c562a6c3937ef543dd8cc6ae5c
MD5 f167b8b1291e3f9adc301ec39533697f
BLAKE2b-256 b968fa4d0a194b04b5f6f40c1f0c9459e2b5abf290d1cd86a40e60c7546560e6

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