add feed generators for Google Merchant, Amazon Seller, Yandex Market, and Yandex Products. Includes a shared base class (`BaseFeedGenerator`) for common functionality, such as product retrieval and validation. Each generator supports format-specific output and handles platform-specific requirements. This change simplifies the creation of product feeds for multiple marketplaces.
21 lines
799 B
Python
21 lines
799 B
Python
from engine.core.feeds.amazon_seller import AmazonSellerFeedGenerator
|
|
from engine.core.feeds.base import BaseFeedGenerator
|
|
from engine.core.feeds.google_merchant import GoogleMerchantFeedGenerator
|
|
from engine.core.feeds.yandex_market import YandexMarketFeedGenerator
|
|
from engine.core.feeds.yandex_products import YandexProductsFeedGenerator
|
|
|
|
FEED_GENERATORS: dict[str, type[BaseFeedGenerator]] = {
|
|
"google_merchant": GoogleMerchantFeedGenerator,
|
|
"yandex_market": YandexMarketFeedGenerator,
|
|
"yandex_products": YandexProductsFeedGenerator,
|
|
"amazon_seller": AmazonSellerFeedGenerator,
|
|
}
|
|
|
|
__all__ = [
|
|
"BaseFeedGenerator",
|
|
"GoogleMerchantFeedGenerator",
|
|
"YandexMarketFeedGenerator",
|
|
"YandexProductsFeedGenerator",
|
|
"AmazonSellerFeedGenerator",
|
|
"FEED_GENERATORS",
|
|
]
|