Every Rohlík Group shop can now be targeted using presets published by the library, and the cart model reports its currency and the shop's minimum order value.
Added
SITES/Site: presets for all Rohlík Group shops, keyed by country code:czRohlík.cz,deKnuspr.de,atGurkerl.at,huKifli.hu,roSezamo.ro. Each hascode,name,base_url,currencyandtimezone. Usage:RohlikAPI(user, pw, base_url=SITES["de"].base_url)(#10)CartItem.currency: ISO 4217 code of the item price, e.g."EUR"(#10)Cart.currency: taken from the cart's items, because the cart response has no currency of its own. It isNonewhen the cart is empty or no item reports one (#10)Cart.minimum_order_price: the shop's minimum order value, fromminimalOrderPrice, which was previously dropped. It isNoneif the API omits it; anonymous carts report0(#9)
Changed
- The
Cart.can_make_orderdocstring no longer claims it tracks the minimum order.submitConditionPassedalso requires checkout details such as a delivery slot, so comparetotal_pricewithminimum_order_priceinstead. - Documentation (#12):
- The README now covers the other shops (new "Other shops" section) and documents
products.get_cards,products.get_week_sales,delivery.get_addressesanddelivery.get_active_address_id. - The README's error-handling section is complete.
example.pyshows how to pick a shop.PUBLISHING.mddescribes the real release flow.
- The README now covers the other shops (new "Other shops" section) and documents
Compatibility
- No breaking changes. The new dataclass fields have defaults and come after the existing ones, and the new exports only add names.
- Requires Python 3.13+.
Install: pip install --upgrade rohlik-api