api.services.catalog_lookup¶
Read-only Airtable lookups for the product intake workflow: reference lists for the app’s forms (brands, equipment types, specification keys, expected specifications per family, Unit condition choices) and candidate existing Models for catalog matching (spec §6B).
Attributes¶
Functions¶
|
|
|
|
|
Lowercase, strip accents and punctuation: "Mikro 220 R" ~ "mikro-220r". |
|
Existing Models whose reference contains the normalized model string |
Module Contents¶
- api.services.catalog_lookup.SPEC_TYPE_TABLE_NAME = 'Specification type'¶
- api.services.catalog_lookup.EXPECTED_SPECS_TABLE_NAME = 'Specs attendues par Famille'¶
- api.services.catalog_lookup.OPTIONS_TTL_SECONDS = 600¶
- api.services.catalog_lookup.clear_options_cache() None¶
- api.services.catalog_lookup.load_options() dict[str, Any]¶
- api.services.catalog_lookup.normalize(text: str) str¶
Lowercase, strip accents and punctuation: “Mikro 220 R” ~ “mikro-220r”.
- api.services.catalog_lookup.find_candidate_models(brand: str, model: str, limit: int = 8) list[dict[str, Any]]¶
Existing Models whose reference contains the normalized model string (and whose brand contains the brand, when given), with their Variations.
A suggestion only: the app shows these and a human decides (§6B).