Metadata-Version: 2.5
Name: wpa-common
Version: 0.1.0
Summary: Shared vocabulary for WattpadArchiver: the result schema, target parsing, API models
Author-email: Aaron <aaron@audora.art>
License: Proprietary
Requires-Python: >=3.12
Requires-Dist: pydantic>=2.7
Description-Content-Type: text/markdown

# wpa-common

The vocabulary every WattpadArchiver component shares, with pydantic as its only
dependency:

- `wpa_common.kinds` — job kinds, target kinds, priorities, scopes, job states.
- `wpa_common.targets` — `parse_target()`: Wattpad URLs, `w.tt` links and `{kind, id}`
  objects → a `Target`.
- `wpa_common.wtt` — finding `w.tt` short links in HTML.
- `wpa_common.results` — the **shared result schema** that workers and WattpadDownloader
  submit and the coordinator ingests (`POST /jobs/{id}/result`, `POST /ingest`).
- `wpa_common.api` — request/response models for the coordinator's queue, worker and
  status endpoints.

Design: `ARCHITECTURE.md` at the repo root.
