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.0.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.0-py3-none-any.whl (49.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dd_parser_cleaner-0.4.0.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.0.tar.gz
Algorithm Hash digest
SHA256 bccdd5da1342df084e01f40304640b2537c6b9813a7ea3680988ceddfa6940c0
MD5 83db9ebdfd0a7bd16a30e26dab7086b5
BLAKE2b-256 e4a050d4b2500ad7aa2cdd031a1a3be69681a9e2c8b152a888fc1623463836cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dd_parser_cleaner-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 49.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d346727b02be730c299af7fb345305242e093559e6a4d75feb1dcfac1caacf22
MD5 2e0f2a84542b5a1f663026602e2af304
BLAKE2b-256 7c25082f006400205d63b27c193b46884ed0300adf53f14907147c6983e178a5

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