Metadata-Version: 2.4
Name: ratchet-ops
Version: 0.1.0
Summary: Business process automation for the Ratchet framework
Project-URL: Homepage, https://getratchet.dev
Project-URL: Repository, https://github.com/ratchet-framework/Ratchet
Author: Aaron Benson
License-Expression: MIT
Requires-Python: >=3.10
Requires-Dist: ratchet-core>=0.1.0
Requires-Dist: ratchet-pilot>=0.1.0
Description-Content-Type: text/markdown

# ratchet-ops

Business process automation for the [Ratchet framework](https://getratchet.dev).

## Install

```bash
pip install ratchet-ops
```

## What it does

- **Invoicing** — Parse invoices from text with rule-based extraction, duplicate detection, and status tracking
- **Expenses** — Track spending by category and vendor, with period summaries and recurring expense support
- **Cost routing** — Route LLM tasks to the cheapest capable model (Haiku/Sonnet/Opus), log costs, project budgets

```python
from ratchet.ops import OpsModule

agent.register(OpsModule())

# Or use components directly
from ratchet.ops import select_model, calculate_cost

model = select_model("extract facts from this transcript")  # → claude-haiku-4-5
cost = calculate_cost(model, input_tokens=5000, output_tokens=500)
```

## License

MIT
