wpa-common (0.1.0)

Published 2026-10-18 22:26:41 +02:00 by aaron

Installation

pip install --index-url  wpa-common

About this package

Shared vocabulary for WattpadArchiver: the result schema, target parsing, API models

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.

Requirements

Requires Python: >=3.12
Details
PyPI
2026-10-18 22:26:41 +02:00
164
Proprietary
23 KiB
Assets (2)
Versions (1) View all
0.1.0 2026-10-18