api.scripts.airtable_catalog_stats¶
Daily shape-of-the-catalog statistics, independent of Shopify.
Purely a read-only Airtable scrape (Model / Variation / Toutes les unités):
catalog size, how variants/units are distributed across models, and how
that’s changing day over day. No correctness checking against Shopify –
that’s shopify_catalog_reconciliation’s job; this script is about the
catalog’s own shape and growth.
Classes¶
Daily catalog-shape statistics, read-only, independent of Shopify. |
Functions¶
|
Module Contents¶
- api.scripts.airtable_catalog_stats.build_result(models: list[api.domain.catalog.Model], variations: list[api.domain.catalog.Variation], units: list[api.domain.catalog.Unit], previous_snapshot: dict[str, Any] | None) tuple[api.scripts.base.ScriptResult, dict[str, Any]]¶
- class api.scripts.airtable_catalog_stats.AirtableCatalogStats¶
Daily catalog-shape statistics, read-only, independent of Shopify.
- name = 'airtable_catalog_stats'¶
- schedule¶
- is_configured() bool¶
- run(previous_snapshot: dict[str, Any] | None = None, report_stage: api.scripts.base.StageReporter = lambda stage: ..., **kwargs: Any) tuple[api.scripts.base.ScriptResult, dict[str, Any] | None]¶