Metadata-Version: 2.4
Name: kestreel
Version: 0.0.0
Summary: Verified media ingest and configurable project preparation
Author: Suhail Suhail
Author-email: Suhail Suhail <suhailece@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Programming Language :: Python :: 3
Requires-Dist: jinja2>=3.1.6
Requires-Python: >=3.12
Project-URL: Repository, https://github.com/orbyts/kestreel
Project-URL: Issues, https://github.com/orbyts/kestreel/issues
Description-Content-Type: text/markdown

# Kestreel

Verified media ingest and project preparation. Python 3.12+, managed with uv.

## Status

Version 0.0.0 is an MIT-licensed functional alpha. Camera-aware renaming and automatic eject are not implemented yet. Both mounted card directories and manually copied disk directories use the same byte-preserving copy engine.

## Development

```sh
uv sync
uv run pytest
uv run kestreel --help
```

## First usable slice

```sh
uv run kestreel inspect /Volumes/SD_Card
uv run kestreel ingest /Volumes/SD_Card /path/to/new-archive --dry-run
uv run kestreel ingest /Volumes/SD_Card /path/to/new-archive --source-kind card --purpose ingest-test
uv run kestreel verify /path/to/new-archive
uv run kestreel project init cycling-test --root /path/to/projects
```

Ingest preserves file paths beneath `card/`, copies all regular files including companions, and writes a completion manifest only after SHA-256 verification. Camera file bytes are unchanged. Destination archives must be new; existing paths and symlinks in the source are refused. Empty directories are not archived. An interrupted copy leaves an incomplete directory for inspection; automatic resume is not implemented. A verified copy is not an independent second backup.

Optional configuration: `~/.config/kestreel/config.toml` (see `config.example.toml`). Project root precedence: `--root`, `KESTREEL_PROJECTS`, configuration. Folder templates support Jinja2 with `project` available; absolute paths and parent traversal are refused. Live Resolve databases are not stored or modified by this tool.

## Roadmap

1. Card-aware metadata extraction (ExifTool/ffprobe), capture-time provenance and camera adapters.
2. Planned flattening/renaming of supported companion groups, original-name mapping, collision handling, resumable ingest, configurable date-based originals root and optional macOS eject after verification.
3. Asset selection and portable project manifests.
4. Optional supported Resolve API adapter, including local/Cloud project initialization; no assumed OFX API coverage.
5. Proxy workflows with local SSD storage and original-media verification before delivery.
6. Packaging, license selection, release CI and PyPI publication.

Chroma Harbor documents workflows; Kairo records camera configuration; Kestreel prepares assets and projects. See [release setup](docs/releases.md) and [test strategy](docs/testing.md). No camera footage or purchased LUTs belong in this repository.

On filesystems without hard links, publishing uses exclusive file creation and verifies the destination again. A process interruption can leave a partial file; an archive is complete only when its verified completion manifest exists.
