From 1b56aae396f6873f60d6dfc5d2d9d1b799ef3bd4 Mon Sep 17 00:00:00 2001 From: sriram Date: Fri, 14 Aug 2026 12:14:58 +0530 Subject: [PATCH] backend env updates and brand json files --- .env.example | 13 + .env.production | 8 +- app/infrastructure/settings.py | 12 + app/main.py | 46 +- app/services/vector_store.py | 14 +- data/seed_catalogs/brand_catalog_idhayam.json | 981 ++++++++++++++++++ tests/test_brand_registry.py | 5 + 7 files changed, 1069 insertions(+), 10 deletions(-) create mode 100644 data/seed_catalogs/brand_catalog_idhayam.json diff --git a/.env.example b/.env.example index 3f239b1..849e92e 100644 --- a/.env.example +++ b/.env.example @@ -144,6 +144,19 @@ DB_NAME=pgvector DB_USER=postgres DB_PASSWORD=changeme +# How often (seconds) to reconcile brand_* tables against data/seed_catalogs/. +# +# Brands are discovered from the database, not from a list: every brand_* table +# is enumerated on each request, so a new one shows up in the catalog with no +# registration step. This interval covers the other direction - mirroring a +# table created directly in the database into a seed catalog file - which +# otherwise only happens at startup or via POST /api/system/brand-sync. +# +# A sweep with nothing to do is one COUNT(*) per brand table and writes nothing. +# Raise it if the database is remote and the chatter matters; 0 turns the loop +# off entirely, leaving only the startup run and the manual endpoint. +BRAND_SYNC_INTERVAL_SECONDS=300 + USE_S3=true S3_ACCESS_KEY=your-do-spaces-key S3_SECRET_KEY=your-do-spaces-secret diff --git a/.env.production b/.env.production index 9dce744..1362baa 100644 --- a/.env.production +++ b/.env.production @@ -58,7 +58,13 @@ DB_HOST=31.97.228.132 DB_PORT=6054 DB_NAME=pgvector DB_USER=admin -DB_PASSWORD=Package@321# +# The single quotes are PART OF THE PASSWORD, not shell/dotenv syntax. The outer +# double quotes are what dotenv strips, leaving 'Package@321#' including quotes. +# Writing it bare as Package@321# is what made every connection fail with +# "password authentication failed for user admin", which surfaces as +# /api/health reporting "database": false and an empty catalog on every page - +# the API looks healthy and the database looks empty. Do not "tidy" the quotes. +DB_PASSWORD="'Package@321#'" # --- Embeddings ------------------------------------------------------------ USE_EMBEDDINGS=true diff --git a/app/infrastructure/settings.py b/app/infrastructure/settings.py index cd94d62..6b17735 100644 --- a/app/infrastructure/settings.py +++ b/app/infrastructure/settings.py @@ -140,6 +140,18 @@ DATABASE_URL = os.getenv( f"postgresql://{DB_USER}:{DB_PASSWORD}@{DB_HOST}:{DB_PORT}/{DB_NAME}", ) +# How often to re-run the brand-table <-> seed-catalog reconcile after boot. +# +# The startup run alone only catches what existed at boot. A brand table created +# directly in the database while the server is up - by hand, by a script, or by +# another machine sharing this database - is not mirrored into the seed catalogs +# until the next restart. This interval is what closes that window. +# +# reconcile_brand_catalogs() is idempotent and non-destructive, so a sweep that +# finds nothing to do costs one COUNT(*) per brand table and writes nothing. +# 0 disables the loop, leaving the startup run and POST /api/system/brand-sync. +BRAND_SYNC_INTERVAL_SECONDS = int(os.getenv("BRAND_SYNC_INTERVAL_SECONDS", "300")) + # --------------------------------------------------------------------------- # S3 / DigitalOcean Spaces (product image storage) - optional # --------------------------------------------------------------------------- diff --git a/app/main.py b/app/main.py index 8dc51b2..d39e5dd 100644 --- a/app/main.py +++ b/app/main.py @@ -20,7 +20,7 @@ from fastapi.staticfiles import StaticFiles from fastapi.responses import FileResponse from app.infrastructure.persistence import restore_bundled_assets -from app.infrastructure.settings import API_CORS_ORIGINS +from app.infrastructure.settings import API_CORS_ORIGINS, BRAND_SYNC_INTERVAL_SECONDS from app.api.routers import health, brands, search, chat, catalog, system from app.api.routers import stores, discounts, analytics as store_analytics, trending, recommendations, store_admin from app.api.routers import nutrition, nutrition_admin, upload @@ -46,6 +46,12 @@ except Exception as e: # pragma: no cover - depends on an optional dependency MCP_PATH = "/mcp" +# Signals the background thread below to stop. Doubles as its sleep: waiting on +# an Event rather than time.sleep() means shutdown is immediate instead of +# blocking until the current BRAND_SYNC_INTERVAL_SECONDS elapses. +_brand_sync_stop = threading.Event() + + @asynccontextmanager async def lifespan(_app: FastAPI): """ @@ -55,6 +61,10 @@ async def lifespan(_app: FastAPI): Postgres, which may be slow or briefly unreachable on a cold boot, and the server answering /api/health in under a second is what lets the container healthcheck pass while that settles. + + That same thread then stays alive to re-run the brand reconcile on an + interval, so a brand table that appears in the database after boot reaches + the catalog without a restart. """ # Runs before the thread below, and synchronously: the seed catalogs and @@ -80,6 +90,26 @@ async def lifespan(_app: FastAPI): except Exception as e: logger.warning("Startup background init warning: %s", e) + # Everything above is a one-shot boot sweep. Keep going on an interval so + # a brand table created directly in the database - bypassing the app, and + # therefore bypassing the cache invalidation every write path does - still + # reaches the catalog. Without this it waits for the next restart. + if BRAND_SYNC_INTERVAL_SECONDS <= 0: + logger.info("Periodic brand sync disabled (BRAND_SYNC_INTERVAL_SECONDS=0)") + return + + logger.info("Periodic brand sync every %ss", BRAND_SYNC_INTERVAL_SECONDS) + while not _brand_sync_stop.wait(BRAND_SYNC_INTERVAL_SECONDS): + try: + # Imported per iteration for the same reason as above: a failure + # to import must not be what kills the loop. + from app.api.routers.system import _run_background_brand_sync + _run_background_brand_sync() + except Exception as e: + # One bad sweep - an unreachable database, a malformed seed file - + # must not end the loop, or recovery needs a restart again. + logger.warning("Periodic brand sync warning: %s", e) + threading.Thread(target=_async_init, daemon=True).start() # The mounted MCP app carries its own lifespan, which starts the session @@ -87,11 +117,17 @@ async def lifespan(_app: FastAPI): # that lifespan - only the outermost app's is executed - so without this # the endpoint exists, accepts a connection, and then fails on the first # message with a session manager that was never started. - if _mcp_app is not None: - async with _mcp_app.lifespan(_mcp_app): + try: + if _mcp_app is not None: + async with _mcp_app.lifespan(_mcp_app): + yield + else: yield - else: - yield + finally: + # Releases the interval wait immediately. The thread is a daemon, so this + # is not what lets the process exit - it is what stops a reconcile from + # starting against a database the shutdown is already tearing down. + _brand_sync_stop.set() app = FastAPI( diff --git a/app/services/vector_store.py b/app/services/vector_store.py index 560a3ac..a68047b 100644 --- a/app/services/vector_store.py +++ b/app/services/vector_store.py @@ -579,10 +579,16 @@ def get_brand_overview(force_refresh: bool = False) -> List[Dict[str, Any]]: img = None image_cols = [c for c in ("image_id", "image_url", "image_urls") if c in columns] - if "image_url" in columns or "image_urls" in columns: - where = " OR ".join( - f"({c} IS NOT NULL)" for c in ("image_url", "image_urls") if c in columns - ) + url_cols = [c for c in ("image_url", "image_urls") if c in columns] + # Prefer a row that carries a stored URL. When the table has + # no URL column at all, still pick a row with an image_id: + # the router resolves that against S3 (brands.py), so the + # card gets an image instead of falling back to initials. + # Brand tables written by a different DDL really can lack + # both URL columns while their objects sit in the bucket. + filter_cols = url_cols or [c for c in image_cols if c == "image_id"] + if filter_cols: + where = " OR ".join(f"({c} IS NOT NULL)" for c in filter_cols) order = " ORDER BY updated_at DESC" if "updated_at" in columns else "" cur.execute( f"SELECT {', '.join(image_cols)} FROM {table_name} " diff --git a/data/seed_catalogs/brand_catalog_idhayam.json b/data/seed_catalogs/brand_catalog_idhayam.json new file mode 100644 index 0000000..cfe2c6d --- /dev/null +++ b/data/seed_catalogs/brand_catalog_idhayam.json @@ -0,0 +1,981 @@ +{ + "brand": "idhayam", + "search_query": "Idhayam products catalog", + "generation_timestamp": "C:\\Brand_Catalog_LLM\\RAG_Model_Nutrition_Intelligence\\RAG_Model_Full_Implement\\backend\\app\\services\\brand_sync.py", + "total_products": 24, + "total_images": 0, + "products": [ + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Gingelly Oil 500ml", + "title": "Idhayam Gingelly Oil", + "description": "Introducing Idhayam Gingelly Oil from the trusted idhayam brand, a premium quality product that delivers exceptional taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_gingelly_oil_500ml", + "price_range": "₹127-143", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket", + "Jiomart", + "Blinkit", + "Zepto", + "Nykaa", + "Mantra" + ], + "fssai_license": "10012042000109", + "product_sku": "B0154J83ZK", + "sku_source": "Amazon (ASIN)", + "hsn_code": "1517", + "final_selling_price": 150.15, + "selling_price": 143.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹127-143", + "Available in 500ml", + "Premium Quality", + "Available on 8 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Gingelly Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Gingelly Oil 1L", + "title": "Idhayam Gingelly Oil", + "description": "Introducing Idhayam Gingelly Oil from the trusted idhayam brand, a premium quality product that delivers exceptional taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_gingelly_oil_1l", + "price_range": "₹207-253", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket", + "Jiomart", + "Blinkit", + "Zepto", + "Nykaa", + "Mantra" + ], + "fssai_license": "10012042000109", + "product_sku": "B07531B21V", + "sku_source": "Amazon (ASIN)", + "hsn_code": "1517", + "final_selling_price": 265.65, + "selling_price": 253.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹207-253", + "Available in 1L", + "Premium Quality", + "Available on 8 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Gingelly Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Sesame Oil 500ml", + "title": "Idhayam Sesame Oil", + "description": "Introducing Idhayam Sesame Oil from the trusted idhayam brand, a premium quality product that delivers exceptional taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_sesame_oil_500ml", + "price_range": "₹125-155", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket", + "Jiomart", + "Blinkit", + "Zepto", + "Nykaa", + "Mantra" + ], + "fssai_license": "10012042000109", + "product_sku": "B0154J83ZK", + "sku_source": "Amazon (ASIN)", + "hsn_code": "1517", + "final_selling_price": 162.75, + "selling_price": 155.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹125-155", + "Available in 500ml", + "Premium Quality", + "Available on 8 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Sesame Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Sesame Oil 1L", + "title": "Idhayam Sesame Oil", + "description": "Introducing Idhayam Sesame Oil from the trusted idhayam brand, a premium quality product that delivers exceptional taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_sesame_oil_1l", + "price_range": "₹227-263", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket", + "Jiomart", + "Blinkit", + "Zepto", + "Nykaa", + "Mantra" + ], + "fssai_license": "10012042000109", + "product_sku": "40003315", + "sku_source": "BigBasket (Product ID)", + "hsn_code": "1517", + "final_selling_price": 276.15, + "selling_price": 263.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹227-263", + "Available in 1L", + "Premium Quality", + "Available on 8 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Sesame Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Groundnut Oil 500ml", + "title": "Idhayam Groundnut Oil", + "description": "Introducing Idhayam Groundnut Oil from the trusted idhayam brand, a premium quality product that delivers exceptional taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_groundnut_oil_500ml", + "price_range": "₹84-106", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket", + "Jiomart", + "Blinkit", + "Zepto" + ], + "fssai_license": "10012042000109", + "product_sku": "B0GG6Y3SM6", + "sku_source": "Amazon (ASIN)", + "hsn_code": "1517", + "final_selling_price": 111.3, + "selling_price": 106.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹84-106", + "Available in 500ml", + "Premium Quality", + "Available on 6 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Omega-3 - Heart health", + "Dietary Fiber - Digestive health", + "Protein - Muscle building", + "Magnesium - Muscle function", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Groundnut Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Groundnut Oil 2L", + "title": "Idhayam Groundnut Oil", + "description": "Introducing Idhayam Groundnut Oil from the trusted idhayam brand, a premium quality product that delivers exceptional taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_groundnut_oil_2l", + "price_range": "₹271-319", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket", + "Jiomart", + "Blinkit", + "Zepto" + ], + "fssai_license": "10012042000109", + "product_sku": "IDHAYA-GRO-2-001", + "sku_source": "Internal", + "hsn_code": "1517", + "final_selling_price": 334.95, + "selling_price": 319.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹271-319", + "Available in 2L", + "Premium Quality", + "Available on 6 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Omega-3 - Heart health", + "Dietary Fiber - Digestive health", + "Protein - Muscle building", + "Magnesium - Muscle function", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Groundnut Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Groundnut Oil 5kg", + "title": "Idhayam Groundnut Oil", + "description": "Introducing Idhayam Groundnut Oil from the trusted idhayam brand, a premium quality product that delivers exceptional taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_groundnut_oil_5kg", + "price_range": "₹578-662", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket", + "Jiomart", + "Blinkit", + "Zepto" + ], + "fssai_license": "10012042000109", + "product_sku": "IDHAYA-GRO-5-001", + "sku_source": "Internal", + "hsn_code": "1517", + "final_selling_price": 695.1, + "selling_price": 662.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹578-662", + "Available in 5kg", + "Premium Quality", + "Available on 6 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Omega-3 - Heart health", + "Dietary Fiber - Digestive health", + "Protein - Muscle building", + "Magnesium - Muscle function", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Groundnut Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Coconut Oil 500ml", + "title": "Idhayam Coconut Oil", + "description": "Introducing Idhayam Coconut Oil from the trusted idhayam brand, a premium quality product that delivers exceptional taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Priced affordably at ₹28-49, this product offers excellent value for money without compromising on quality. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_coconut_oil_500ml", + "price_range": "₹139-161", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket" + ], + "fssai_license": "10012042000109", + "product_sku": "IDHAYA-COC-500-001", + "sku_source": "Internal", + "hsn_code": "1517", + "final_selling_price": 169.05, + "selling_price": 161.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹139-161", + "Available in 500ml", + "Premium Quality", + "Available on 3 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Omega-3 - Heart health", + "Dietary Fiber - Digestive health", + "Protein - Muscle building", + "Magnesium - Muscle function", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Coconut Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Mantra Groundnut Oil 100g", + "title": "Idhayam Mantra Groundnut Oil", + "description": "Introducing Idhayam Mantra Groundnut Oil from the trusted idhayam brand, a premium quality product that delivers exceptional taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_mantra_groundnut_oil_100g", + "price_range": "₹22-28", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket", + "Jiomart", + "Blinkit", + "Zepto" + ], + "fssai_license": "10012042000109", + "product_sku": "40224781", + "sku_source": "BigBasket (Product ID)", + "hsn_code": "1517", + "final_selling_price": 29.4, + "selling_price": 28.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹22-28", + "Available in 100g", + "Premium Quality", + "Available on 6 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Omega-3 - Heart health", + "Dietary Fiber - Digestive health", + "Protein - Muscle building", + "Magnesium - Muscle function", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Mantra Groundnut Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Coconut Oil 1L", + "title": "Idhayam Coconut Oil", + "description": "Introducing Idhayam Coconut Oil from the trusted idhayam brand, a premium quality product that delivers exceptional taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Priced affordably at ₹28-49, this product offers excellent value for money without compromising on quality. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_coconut_oil_1l", + "price_range": "₹232-288", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket" + ], + "fssai_license": "10012042000109", + "product_sku": "40003315", + "sku_source": "BigBasket (Product ID)", + "hsn_code": "1517", + "final_selling_price": 302.4, + "selling_price": 288.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹232-288", + "Available in 1L", + "Premium Quality", + "Available on 3 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Omega-3 - Heart health", + "Dietary Fiber - Digestive health", + "Protein - Muscle building", + "Magnesium - Muscle function", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Coconut Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Mustard Oil 500ml", + "title": "Idhayam Mustard Oil", + "description": "Idhayam Mustard Oil - A rich and aromatic cooking oil with a slightly bitter taste, perfect for sautéing vegetables and preparing traditional dishes. ptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Priced affordably at ₹27-34, this product offers excellent value for money without compromising on quality. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_mustard_oil_500ml", + "price_range": "₹124-166", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket" + ], + "fssai_license": "10012042000109", + "product_sku": "20003449", + "sku_source": "BigBasket (Product ID)", + "hsn_code": "1517", + "final_selling_price": 174.3, + "selling_price": 166.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹124-166", + "Available in 500ml", + "Premium Quality", + "Available on 3 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Mustard Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Mustard Oil 1L", + "title": "Idhayam Mustard Oil", + "description": "Idhayam Mustard Oil - A rich and aromatic cooking oil with a slightly bitter taste, perfect for sautéing vegetables and preparing traditional dishes. ptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Priced affordably at ₹27-34, this product offers excellent value for money without compromising on quality. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_mustard_oil_1l", + "price_range": "₹216-284", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket" + ], + "fssai_license": "10012042000109", + "product_sku": "261816", + "sku_source": "BigBasket (Product ID)", + "hsn_code": "1517", + "final_selling_price": 298.2, + "selling_price": 284.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹216-284", + "Available in 1L", + "Premium Quality", + "Available on 3 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Mustard Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Mustard Oil 5kg", + "title": "Idhayam Mustard Oil", + "description": "Idhayam Mustard Oil - A rich and aromatic cooking oil with a slightly bitter taste, perfect for sautéing vegetables and preparing traditional dishes. ptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Priced affordably at ₹27-34, this product offers excellent value for money without compromising on quality. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_mustard_oil_5kg", + "price_range": "₹851-1009", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket" + ], + "fssai_license": "10012042000109", + "product_sku": "IDHAYA-MUS-5-001", + "sku_source": "Internal", + "hsn_code": "1517", + "final_selling_price": 1059.45, + "selling_price": 1009.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹851-1009", + "Available in 5kg", + "Premium Quality", + "Available on 3 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Mustard Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Sunflower Oil 500ml", + "title": "Idhayam Sunflower Oil", + "description": "Introducing Idhayam Sunflower Oil from the trusted idhayam brand, a premium quality product that delivers exceptional taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Formulated to be low in fat and sugar while maintaining great taste, this product is perfect for health-conscious individuals who don't want to compromise on flavor. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_sunflower_oil_500ml", + "price_range": "₹132-178", + "providers": [ + "Amazon.in", + "Flipkart.com", + "BigBasket.co.in" + ], + "fssai_license": "10012042000109", + "product_sku": "B01MFDID8N", + "sku_source": "Amazon (ASIN)", + "hsn_code": "1517", + "final_selling_price": 186.9, + "selling_price": 178.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹132-178", + "Available in 500ml", + "Premium Quality", + "Available on 3 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Sunflower Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Sunflower Oil 1L", + "title": "Idhayam Sunflower Oil", + "description": "Introducing Idhayam Sunflower Oil from the trusted idhayam brand, a premium quality product that delivers exceptional taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Formulated to be low in fat and sugar while maintaining great taste, this product is perfect for health-conscious individuals who don't want to compromise on flavor. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_sunflower_oil_1l", + "price_range": "₹261-289", + "providers": [ + "Amazon.in", + "Flipkart.com", + "BigBasket.co.in" + ], + "fssai_license": "10012042000109", + "product_sku": "148681", + "sku_source": "BigBasket (Product ID)", + "hsn_code": "1517", + "final_selling_price": 303.45, + "selling_price": 289.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹261-289", + "Available in 1L", + "Premium Quality", + "Available on 3 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Sunflower Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Refined Oil 500ml", + "title": "Idhayam Refined Oil", + "description": "Introducing Idhayam Refined Oil from the trusted idhayam brand, a premium quality product that delivers exceptional taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_refined_oil_500ml", + "price_range": "₹145-165", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket" + ], + "fssai_license": "10012042000109", + "product_sku": "148682", + "sku_source": "BigBasket (Product ID)", + "hsn_code": "1517", + "final_selling_price": 173.25, + "selling_price": 165.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹145-165", + "Available in 500ml", + "Premium Quality", + "Available on 3 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Refined Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Refined Oil 1L", + "title": "Idhayam Refined Oil", + "description": "Introducing Idhayam Refined Oil from the trusted idhayam brand, a premium quality product that delivers exceptional taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_refined_oil_1l", + "price_range": "₹251-289", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket" + ], + "fssai_license": "10012042000109", + "product_sku": "IDHAYA-REF-1-001", + "sku_source": "Internal", + "hsn_code": "1517", + "final_selling_price": 303.45, + "selling_price": 289.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹251-289", + "Available in 1L", + "Premium Quality", + "Available on 3 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Refined Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Mantra Groundnut Oil 250g", + "title": "Idhayam Mantra Groundnut Oil", + "description": "Introducing Idhayam Mantra Groundnut Oil from the trusted idhayam brand, a premium quality product that delivers exceptional taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_mantra_groundnut_oil_250g", + "price_range": "₹41-49", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket", + "Jiomart", + "Blinkit", + "Zepto" + ], + "fssai_license": "10012042000109", + "product_sku": "B00M8DOKS0", + "sku_source": "Amazon (ASIN)", + "hsn_code": "1517", + "final_selling_price": 51.45, + "selling_price": 49.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹41-49", + "Available in 250g", + "Premium Quality", + "Available on 6 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Omega-3 - Heart health", + "Dietary Fiber - Digestive health", + "Protein - Muscle building", + "Magnesium - Muscle function", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Mantra Groundnut Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Mantra Groundnut Oil 500g", + "title": "Idhayam Mantra Groundnut Oil", + "description": "Introducing Idhayam Mantra Groundnut Oil from the trusted idhayam brand, a premium quality product that delivers exceptional taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_mantra_groundnut_oil_500g", + "price_range": "₹79-91", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket", + "Jiomart", + "Blinkit", + "Zepto" + ], + "fssai_license": "10012042000109", + "product_sku": "40224782", + "sku_source": "BigBasket (Product ID)", + "hsn_code": "1517", + "final_selling_price": 95.55, + "selling_price": 91.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹79-91", + "Available in 500g", + "Premium Quality", + "Available on 6 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Omega-3 - Heart health", + "Dietary Fiber - Digestive health", + "Protein - Muscle building", + "Magnesium - Muscle function", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Mantra Groundnut Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Mantra Groundnut Oil 1kg", + "title": "Idhayam Mantra Groundnut Oil", + "description": "Introducing Idhayam Mantra Groundnut Oil from the trusted idhayam brand, a premium quality product that delivers exceptional taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_mantra_groundnut_oil_1kg", + "price_range": "₹131-169", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket", + "Jiomart", + "Blinkit", + "Zepto" + ], + "fssai_license": "10012042000109", + "product_sku": "B07B4KYFX7", + "sku_source": "Amazon (ASIN)", + "hsn_code": "1517", + "final_selling_price": 177.45, + "selling_price": 169.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹131-169", + "Available in 1kg", + "Premium Quality", + "Available on 6 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Omega-3 - Heart health", + "Dietary Fiber - Digestive health", + "Protein - Muscle building", + "Magnesium - Muscle function", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Mantra Groundnut Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Mantra Groundnut Oil 5kg", + "title": "Idhayam Mantra Groundnut Oil", + "description": "Introducing Idhayam Mantra Groundnut Oil from the trusted idhayam brand, a premium quality product that delivers exceptional taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_mantra_groundnut_oil_5kg", + "price_range": "₹492-618", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket", + "Jiomart", + "Blinkit", + "Zepto" + ], + "fssai_license": "10012042000109", + "product_sku": "40224782", + "sku_source": "BigBasket (Product ID)", + "hsn_code": "1517", + "final_selling_price": 648.9, + "selling_price": 618.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹492-618", + "Available in 5kg", + "Premium Quality", + "Available on 6 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Omega-3 - Heart health", + "Dietary Fiber - Digestive health", + "Protein - Muscle building", + "Magnesium - Muscle function", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Mantra Groundnut Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Mantra Refined Oil 500ml", + "title": "Idhayam Mantra Refined Oil", + "description": "Idhayam Mantra Refined Oil is an aromatic cooking oil, perfect for sautéing and stir-frying without compromising on taste. taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Priced affordably at ₹24-38, this product offers excellent value for money without compromising on quality. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_mantra_refined_oil_500ml", + "price_range": "₹125-165", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket" + ], + "fssai_license": "10012042000109", + "product_sku": "IDHAYA-MAN-500-001", + "sku_source": "Internal", + "hsn_code": "1517", + "final_selling_price": 173.25, + "selling_price": 165.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹125-165", + "Available in 500ml", + "Premium Quality", + "Available on 3 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Mantra Refined Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Mantra Refined Oil 1L", + "title": "Idhayam Mantra Refined Oil", + "description": "Idhayam Mantra Refined Oil is an aromatic cooking oil, perfect for sautéing and stir-frying without compromising on taste. taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Priced affordably at ₹24-38, this product offers excellent value for money without compromising on quality. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_mantra_refined_oil_1l", + "price_range": "₹235-275", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket" + ], + "fssai_license": "10012042000109", + "product_sku": "40003317", + "sku_source": "BigBasket (Product ID)", + "hsn_code": "1517", + "final_selling_price": 288.75, + "selling_price": 275.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹235-275", + "Available in 1L", + "Premium Quality", + "Available on 3 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Mantra Refined Oil Cooking Oils" + }, + { + "brand": "Idhayam", + "brand_name": "Idhayam", + "product_name": "Idhayam Mantra Refined Oil 5kg", + "title": "Idhayam Mantra Refined Oil", + "description": "Idhayam Mantra Refined Oil is an aromatic cooking oil, perfect for sautéing and stir-frying without compromising on taste. taste and satisfaction. This exceptional product represents the perfect blend of quality craftsmanship and premium ingredients, delivering an experience that exceeds expectations in every way. Meticulously crafted using time-honored techniques and carefully selected materials, it offers superior quality that stands out in today's competitive market. The attention to detail in every aspect of production ensures consistent excellence, while the commitment to using only the finest ingredients guarantees lasting satisfaction. Whether you're using it for daily needs or special occasions, this product provides reliable performance and exceptional value that makes it a smart choice for discerning consumers. Priced affordably at ₹24-38, this product offers excellent value for money without compromising on quality. Backed by idhayam's reputation for quality and consistency, this product undergoes rigorous quality checks to ensure it meets the highest standards before reaching your table. Store in a cool, dry place away from direct sunlight. Check the packaging for specific storage instructions and best before date to ensure optimal freshness and taste. Experience the perfect combination of taste, quality, and value that makes this product a favorite among consumers. Whether you're enjoying it alone or sharing with family, it promises to deliver satisfaction with every bite.", + "category": "Cooking Oils", + "image_id": "idhayam_idhayam_mantra_refined_oil_5kg", + "price_range": "₹828-1082", + "providers": [ + "Amazon", + "Flipkart", + "BigBasket" + ], + "fssai_license": "10012042000109", + "product_sku": "B00M8DOKS0", + "sku_source": "Amazon (ASIN)", + "hsn_code": "1517", + "final_selling_price": 1136.1, + "selling_price": 1082.0, + "barcode": null, + "barcode_type": null, + "highlights": [ + "idhayam Brand - Trusted Quality", + "Cooking Oils Category", + "Affordable at ₹828-1082", + "Available in 5kg", + "Premium Quality", + "Available on 3 platforms" + ], + "nutrients": [ + "Vitamin E - Antioxidant protection", + "Healthy Fats - Heart health", + "Omega-3 - Brain function" + ], + "search_query": "idhayam Mantra Refined Oil Cooking Oils" + } + ] +} \ No newline at end of file diff --git a/tests/test_brand_registry.py b/tests/test_brand_registry.py index a86906f..a69551d 100644 --- a/tests/test_brand_registry.py +++ b/tests/test_brand_registry.py @@ -49,6 +49,11 @@ EXPECTED_SEED_TABLES = { "godrej": "brand_godrej", "grb": "brand_grb", "hindustan unilever": "brand_hindustan_unilever", + # Ingested straight into the database with no BRAND_ALIASES entry, so it + # exercises the unaliased path: resolve_parent_brand returns it unchanged + # and it gets its own table. Pinned here to catch the day some new alias + # whole-word-matches "idhayam" and silently re-parents 24 products. + "idhayam": "brand_idhayam", "lion dates": "brand_lion_dates", "Manna": "brand_manna", "milky mist": "brand_milky_mist",