Metadata-Version: 2.4
Name: khipu-weave
Version: 0.1.1
Summary: Configurable LLM-assisted cleaning of tabular data
License-Expression: MIT
Project-URL: Repository, https://github.com/hazarcs/khipu-weave
Project-URL: Documentation, https://github.com/hazarcs/khipu-weave/tree/main/docs
Project-URL: Issues, https://github.com/hazarcs/khipu-weave/issues
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pandas<4,>=1.5
Requires-Dist: scikit-learn<2,>=1.1
Requires-Dist: python-dotenv<2,>=1
Provides-Extra: datasets
Requires-Dist: kagglehub<2,>=0.3.8; extra == "datasets"
Provides-Extra: dev
Requires-Dist: pytest>=7; extra == "dev"
Requires-Dist: ruff; extra == "dev"
Requires-Dist: build; extra == "dev"
Provides-Extra: notebooks
Requires-Dist: ipykernel>=6; extra == "notebooks"
Requires-Dist: nbformat>=5; extra == "notebooks"
Provides-Extra: sampling
Requires-Dist: imbalanced-learn<1,>=0.12.4; extra == "sampling"
Requires-Dist: scikit-learn<1.6; python_version < "3.10" and extra == "sampling"
Dynamic: license-file

# khipu-weave

A Python package for cleaning tabular data with LLM-assisted rule discovery and
local validation. It standardizes categories and formats, flags possible errors,
and repairs values when the source row contains supporting evidence. The cleaning
pipeline preserves rows and records its findings in an audit report.

The package also supports synthetic training examples and LLM-inferred features.

## Installation

```bash
pip install khipu-weave
```

## Offline example

From the repository root after [installation](docs/pipeline/README.md#installation):

```bash
.venv/bin/python examples/run_full_scenario.py \
  --output-dir .cache/offline-check
```

The HTML report at `.cache/offline-check/report.html` contains inputs, expected
outputs, and observed results. Offline mode skips model-dependent cases. Each run
requires a new output directory.

## Quickstart

Open the [quickstart notebook](notebooks/00_quickstart.ipynb) to clean a CSV,
add an LLM-derived feature, and fit classifiers with and without synthetic
training rows using the same prepared data. The quickstart loads the books dataset
from Kaggle when run. [Dataset setup](datasets/README.md#books)

For research notebooks and experiment helpers, see [Benchmarks and experiments](benchmarks/README.md).

## Documentation

- [Project overview](docs/README.md)
- [CSV pipeline](docs/pipeline/README.md)
- [Cleaning methods](docs/cleaning/README.md)
- [Data quality checks](docs/quality/README.md)
- [Model backends](docs/backends/README.md)
- [Tests and benchmarks](docs/testing/README.md)
- [User notebooks](notebooks/README.md)
- [Benchmarks and experiments](benchmarks/README.md)
- [Configuration reference](docs/reference/README.md)
