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:
- An AI-driven framework to generate comprehensive cleaning documentation.
- 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-cleaneris 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, andUSER_GUIDE.mdfor 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. |
🚀 The 12-Step Operational Recipe
The core value of this framework is the reduction of messy data prep into a predictable, 12-step sequence. This workflow moves you from raw, undocumented data to a high-integrity analytical baseline:
- Install:
pip install dd-parser-cleaner - Initialize: Run
init-workspaceto build the KMDS directory structure. - Locate: Run
location-helperfor placement guidance - where to put the data files and documents? - Populate: Move source files to
data/,data_dictionary/, anddocuments/. - Bootstrap: Run
bootstrap-configto generate aprovisional_config.yaml. (Save asconfig.yaml). - Classify: Run
classify-entitiesto synchronize metadata and tag entities. - Clean: Run
clean-dataset --action fullto execute the diagnostic pipeline. - Handshake: Review the
parser_cleaner_handshake.mdfor schema verification. - Baseline: Review the Null Profile to understand raw data conditions.
- Recommendations: Review
cleaning_recommendations.mdfor AI-driven insights. - Access: Use the example notebook to load the "Clean Baseline" dataset.
- Modify: Implement domain-specific cleaning/featurization in your notebook.
⚙️ Installation
Standard Installation (CLI Only)
pip install dd-parser-cleaner
Installation with Notebook Support (Migration Assistant)
pip install "dd-parser-cleaner[notebook]"
🚀 Quick Start
1. Bootstrap Your Workspace
Initialize and configure your project without writing a single line of YAML:
uv run init-workspace ./my_project
# ... move your CSV files to ./my_project/data/ ...
uv run bootstrap-config ./my_project
2. 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dd_parser_cleaner-0.4.5.tar.gz.
File metadata
- Download URL: dd_parser_cleaner-0.4.5.tar.gz
- Upload date:
- Size: 4.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d698fbef5715b693cc4d6ee6f68499e44a993f9598ccc78c41465fdb5aa34eb
|
|
| MD5 |
6b47093a13bd45cf7c64506565f7a582
|
|
| BLAKE2b-256 |
e51faff48d6587119fa25f3fecc4fe6def81c20a24121c11e3bf2ddcf90ca0e0
|
File details
Details for the file dd_parser_cleaner-0.4.5-py3-none-any.whl.
File metadata
- Download URL: dd_parser_cleaner-0.4.5-py3-none-any.whl
- Upload date:
- Size: 34.4 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06a63d494d8a753ddbd7ad3c4f27b82958de4070342b6a9a0e70e07e9b767edc
|
|
| MD5 |
399ae147cacde513f247043fecfd0ac4
|
|
| BLAKE2b-256 |
4eb8efbd917b2d55f8f861d644a0a7b99134c20b9221af5ca3c2bfac330f857c
|