Product entity¶
Generate products with catalogue identity, classification, pricing, availability, and physical details.
Why: Use Product for catalogue fixtures whose identity, category, price, availability, and physical attributes must describe the same product; use individual generators for a narrow projection.
1 | |
Output: Typed Product value.
Parameters¶
dataset:str | null; DefaultNone— Country dataset used for localized catalogue values.max_price:float; Default999.99— Inclusive maximum generated product price.min_price:float; Default0.99— Inclusive minimum generated product price.
Attributes¶
availability(str): Stock availability.brand(str): Brand name.category(str): Product category.color(str): Product color.condition(str): Product condition, such as new or used.currency(str): ISO 4217 currency code of the price.description(str): Product description.dimensions(str): Dimensions as a formatted string.name(str): Product name.price(float): Unit price.product_id(str): Synthetic product identifier.rating(float): Average customer rating.sku(str): Stock keeping unit.tags(list[str]): Search and catalog tags.weight(float): Weight in kilograms.
Limits¶
The available attributes and values depend on the registered entity, its dataset, and its documented constructor options.