Skip to main content

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

Project description

dd-parser-cleaner: AI-Driven Data Preparation & Documentation

A specialized framework for automating data preparation documentation and preparing datasets for machine learning through AI-driven metadata discovery.

🌍 The Big Picture

KMDS is an initiative focused on developing documented, maintainable data science and ML projects using open-source tools and knowledge graphs. The kmds-data-helper was the first step in this journey—automatically building knowledge graphs from standard repository structures.

dd-parser-cleaner is a further refinement of this ecosystem. It targets data preparation, historically the most difficult and detail-loaded segment of any data science project. This tool provides:

  1. An AI-driven framework to generate comprehensive cleaning documentation.
  2. An agent-driven interface for developing datasets for ML featurization and analytics.

By capturing metadata during the cleaning phase, we create the foundation upon which future featurization logic is built.

🚀 Status & Roadmap

  • Current State: dd-parser-cleaner is feature-complete (v0.4.2).
  • Short Term: We will be releasing public examples of dataset migrations shortly.
  • Future: Development of specialized featurization modules for ML and analytics projects will begin once the migration examples are public.

📑 Documentation Strategy (Agent-First)

This project uses a Markdown-Native documentation architecture rather than traditional external sites.

  • Why? Keeping technical guides and design contracts as Markdown within the repo allows AI Agents (like your Migration Assistant) to "read" the documentation and provide better code suggestions.
  • Where to look: Human users should consult the documents/ directory for methodology, and USER_GUIDE.md for quick-start instructions.

🛠️ Technical Constraints

  • Offline First: Optimized for batch processing without external streaming dependencies.
  • Deterministic: Ensures that running the same config on the same data yields the same results.
  • Privacy-Centric: All processing and LLM grounding (via local models) stay within your local environment.

Core Capability Matrix

Capability Operational Impact
AI Recommendations Saves Hours: Replaces manual data profiling with LLM-generated cleaning_recommendations.md.
Clean Bucket Policy De-risks Models: Prevents "ghost" data and undocumented noise from leaking into ML training sets.
Handshake Protocol Audit-Ready: Creates a formal, documented bridge between Raw Data and Logic Implementation.
Agent Interface AI-Native: Designed for AI Assistants to autonomously implement complex, vectorized domain logic.
Metadata Discovery API Faster Featurization: Programmatic access to semantic tags (Geographic, Risk, Financial) for ML pipelines.

🚀 Quick Start

1. Classification (The Handshake)

Synchronize metadata and execute semantic classification:

classify-entities

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.3.tar.gz (22.1 MB 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.3-py3-none-any.whl (57.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dd_parser_cleaner-0.4.3.tar.gz
  • Upload date:
  • Size: 22.1 MB
  • 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.3.tar.gz
Algorithm Hash digest
SHA256 895f74eb5b602bce1271f8d6fad933388bbc6ce7d4e6543fb0ba989b74bb1865
MD5 81d346736815e11f2d0d1329d8e6f3ac
BLAKE2b-256 0317216db69b1ec0c97ec9cb1ceb4c77cfbc5c5a53ed150e7622e8b85aa290b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dd_parser_cleaner-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 57.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4b45fea04737b299a987d2432885a8db380a2cc380b15eb2c7521d1ee07b773a
MD5 421b579d4c203364063bfdc06819afea
BLAKE2b-256 987283aae0df6a9325e0eff7a9e4198f678324823bc4b8387b18e881c755ac2d

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