sanmar_sdk.ftp.catalog¶
SanMar’s product catalog files.
SanMar_SDL_N.csv(the SanMar Data Library) has one row per style, color and size, with descriptions, prices, image links and GTINs, but no inventory. Its_DIvariant has the same columns. SanMar’s guides call SDL_N and EPDD its main product files, and point to SDL_N as the source of catalog colors for web services and orders.SanMar_EPDD.csvhas the same columns plusQTY, the stock across all warehouses. A style listed under several categories appears once per category, so unique keys repeat.The SanMarPI files (bulk, delta, brand and category) are written on request by the product information web service, with a slightly different set of columns.
All of them are comma-delimited with a header row, and all are read one row at a time.
Attributes¶
|
|
|
|
The SanMarPI bulk, delta, brand and category files, per the Web Services Integration |
Classes¶
The columns every SanMar product file shares. |
|
One style, color and size from |
|
One style, color and size from a SanMarPI file. |
Functions¶
|
Stream |
Stream |
|
Stream a SanMarPI bulk, delta, brand or category file, one product at a time. |
Module Contents¶
- sanmar_sdk.ftp.catalog.SDL_COLUMNS = ('unique_key', 'product_title', 'product_description', 'style#', 'available_sizes',...[source]¶
SanMar_SDL_N.csv, as SanMar’s server writes it.The FTP Integration Guide v23.6 spells a few of these differently (
COMPANION_STYLES,PRODUCT_MEASUREMENT); the file’s own header is followed here.
- sanmar_sdk.ftp.catalog.EPDD_COLUMNS = ('unique_key', 'product_title', 'product_description', 'style#', 'available_sizes',...[source]¶
SanMar_EPDD.csv, as SanMar’s server writes it.Like SDL_N with
QTYafterSIZE, except that its model and flat image columns drop the_URLsuffix SDL_N’s have.
- sanmar_sdk.ftp.catalog.PRODUCT_INFORMATION_COLUMNS = ('unique_key', 'product_title', 'product_description', 'style#', 'available_sizes',...[source]¶
The SanMarPI bulk, delta, brand and category files, per the Web Services Integration Guide v24.6 and as SanMar’s server writes them.
- class sanmar_sdk.ftp.catalog.ProductRecord(/, **data: Any)[source]¶
Bases:
sanmar_sdk.base.RecordThe columns every SanMar product file shares.
- unique_key: str[source]¶
SanMar’s identifier for this style, color and size, and the PromoStandards part id.
- catalog_color: str = None[source]¶
The catalog (mainframe) color, which web services and orders expect.
- status: str | None = None[source]¶
Coming Soon, New, Regular, or Discontinued. Coming Soon rows may be incomplete.
- piece_weight: decimal.Decimal | None = None[source]¶
Approximate weight per piece in pounds.
- piece_price: sanmar_sdk.base.Price = None[source]¶
The price per piece for five pieces or fewer of one style and color.
- case_price: sanmar_sdk.base.Price = None[source]¶
The price per piece when buying by the case.
- map_price: sanmar_sdk.base.Price = None[source]¶
The minimum advertised price.
- class sanmar_sdk.ftp.catalog.CatalogProduct(/, **data: Any)[source]¶
Bases:
ProductRecordOne style, color and size from
SanMar_SDL_N.csvorSanMar_EPDD.csv.- quantity: int | None = None[source]¶
Stock across all warehouses, capped by SanMar. Only the EPDD file has it.
- category: str | None = None[source]¶
The category. In SDL files this holds every category, separated by semicolons.
- suggested_price: sanmar_sdk.base.Price = None[source]¶
- msrp: sanmar_sdk.base.Price = None[source]¶
- class sanmar_sdk.ftp.catalog.ProductInformation(/, **data: Any)[source]¶
Bases:
ProductRecordOne style, color and size from a SanMarPI file.
- keywords: sanmar_sdk.base.CommaSeparated = None[source]¶
- piece_sale_price: sanmar_sdk.base.Price = None[source]¶
- case_sale_price: sanmar_sdk.base.Price = None[source]¶
- sale_start_date: sanmar_sdk.base.SanMarDate | None = None[source]¶
- sale_end_date: sanmar_sdk.base.SanMarDate | None = None[source]¶
- sanmar_sdk.ftp.catalog.read_catalog(source: sanmar_sdk.ftp.readers.Source, *, encoding: str = 'utf-8-sig') collections.abc.Iterator[CatalogProduct][source]¶
Stream
SanMar_SDL_N.csv(orSanMar_SDL_DI.csv), one product at a time.
- sanmar_sdk.ftp.catalog.read_extended_catalog(source: sanmar_sdk.ftp.readers.Source, *, encoding: str = 'utf-8-sig') collections.abc.Iterator[CatalogProduct][source]¶
Stream
SanMar_EPDD.csv, one product at a time, with total stock.
- sanmar_sdk.ftp.catalog.read_product_information(source: sanmar_sdk.ftp.readers.Source, *, encoding: str = 'utf-8-sig') collections.abc.Iterator[ProductInformation][source]¶
Stream a SanMarPI bulk, delta, brand or category file, one product at a time.