Metadata-Version: 2.5
Name: de-onager
Version: 1.0.1
Summary: Onager — safe local Parquet small-file compaction
Project-URL: Homepage, https://github.com/KooEric/de-arsenal
Project-URL: Repository, https://github.com/KooEric/de-arsenal
License-Expression: Apache-2.0
License-File: LICENSE
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.11
Requires-Dist: arsenal-core<1.1,>=1.0
Requires-Dist: de-scutum<1.1,>=1.0
Requires-Dist: duckdb>=1.0
Requires-Dist: typer>=0.12
Description-Content-Type: text/markdown

# Onager (`de-onager`)

Merges small Parquet files in a local dataset directory into one file, and runs backfills
in an isolated workspace that replaces the dataset only when you promote it.

```bash
pip install de-onager
onager compact ./data/events --dry-run    # show which files would be merged; changes nothing
onager compact ./data/events              # merge files under 128 MB (--target-bytes)
```

- The dataset is moved to a sibling backup before the compacted copy is installed, and the
  backup is removed only after the swap succeeds. A failed install restores the original.
- Compaction refuses to run while a registered Hasta stream or Pugio run is writing to the
  dataset, or while a stream has uncommitted batches there.
- Each run appends a line to `.onager/compaction-log.jsonl` beside the dataset.
- `run_backfill` and `promote_backfill` (Python API) keep a failed backfill's workspace and
  its status for inspection.
- Local directories only. S3 and GCS paths are refused.

The distribution is `de-onager`; the import name and the command are `onager`.
Part of [DE Arsenal](https://github.com/KooEric/de-arsenal#readme). Limits: [docs/08-limits.md](https://github.com/KooEric/de-arsenal/blob/main/docs/08-limits.md).
