Metadata-Version: 2.3
Name: krill-core
Version: 0.1.4
Summary: Shared recording contract for the krill toolkit — internal, not for standalone use
Author: anonymous
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# krill-core

[![PyPI](https://img.shields.io/pypi/v/krill-core)](https://pypi.org/project/krill-core/)
[![Python](https://img.shields.io/pypi/pyversions/krill-core)](https://pypi.org/project/krill-core/)

> Named after krill, small marine crustaceans.

Shared recording contract for the krill toolkit: HTTP primitives, the recording model, its persistence, and the error base.

## Install

Install a product package under the [workspace installation boundary](../../docs/design-workspace.md#design-overview). Requires Python 3.10+ and uv; run from the repository root:

```bash
uv sync --all-packages
```

## Usage

Import through a re-exporting package — [`krill-fuzzer`](../krill-fuzzer) here; `krill-collector` re-exports the producer-side names.

```python
from pathlib import Path

from krill_fuzzer import load_recording, save_recording

recording = load_recording(Path("logicflow.json"))  # -> WorkflowRecording
save_recording(recording, Path("copy.json"))
```

## API

- [HTTP primitives and error boundaries](docs/design-http.md).
- [Recording types](docs/design-recording.md).
- [Persistence functions](docs/design-persistence.md).
- [Product exports](../../docs/design-workspace.md#package-specifications).

## Background

The [workspace dependency design](../../docs/design-workspace.md#design-overview)
explains this package's role and installation boundary.

## Documentation

- [Docs index](docs/index.md) — recording model, persistence design, and implementation notes.

## License

GPL-2.0 — see [LICENSE](../../LICENSE).
