Skip to main content

israeli-prices

tests chains covered PyPI license: MIT

Typed Python client for Israel's retail price-transparency data.

Israeli law requires large retailers — supermarkets and drugstore chains alike — to publish their full price, promotion and store lists several times a day. The data is public, but it is scattered across ~30 chain portals with different auth schemes, file listings and XML dialects.

israeli-prices turns all of that into one clean API:

import israeli_prices as ilp

ilp.list_chains()                              # every chain covered by the law
stores = ilp.get_stores("super-pharm")         # -> StoresFile (typed)
prices = ilp.get_prices("shufersal", store_id="001")   # -> PriceFile
promos = ilp.get_promos("super-pharm", store_id="209") # -> PromoFile

prices.items[0].price        # Decimal("10.00")
prices.to_df()               # optional pandas export
  • Fetch + parse, end to end — one pip install, portal quirks handled per chain, gzip + XML dialects normalized into pydantic models. No raw file juggling.
  • Prices, promotions AND stores — including grouped promotion structures (groups, reward types, club restrictions), not just price rows.
  • Pharmacy coverage first-class — Super-Pharm today, Good Pharm and the Be Pharm sub-chain on the roadmap, alongside every supermarket chain.
  • MIT licensed — free for any use, commercial included.

Status

31 of the 32 chains on the government roster are implemented, every one verified live end to end (the last one's portal is down — it is registered and will be enabled when it comes back):

  • Self-hosted portals: Shufersal (incl. the Be Pharm sub-chain), Super-Pharm, Wolt Market, Carrefour, Hatzi Hinam.
  • Cerberus shared portal (one adapter, 13 chains): Rami Levy, Tiv Taam, Yochananof, Osher Ad, Dor Alon, Keshet Teamim, Super Cofix, Politzer, Stop Market, Fresh Market, Salach Dabach, Super Yuda, Yellow.
  • Bina portals (one adapter, 10 chains): Good Pharm, Super Bareket, King Store, Maayan 2000, Meshnat Yosef, Shefa Birkat Hashem, Shuk Hayir, Super Sapir, Zol VeBegadol, City Market.
  • Laib catalog (one adapter, 3 chains): Victory, Mahsanei HaShuk, Het Cohen.

See docs/chains.md for the full coverage matrix and per-portal quirks.

Install

pip install israeli-prices

Requires Python ≥ 3.10. Optional extra: israeli-prices[pandas] for .to_df().

Compare across chains

Barcoded products carry the same identifier everywhere — the GTIN in item_code — so it is the join key for lining the same SKU up across chains. group_by_gtin does the join, canonicalizing UPC-12 / EAN-13 to GTIN-14 so encoding differences don't split one product into two:

sp = ilp.get_prices("super-pharm", store_id="142")
sh = ilp.get_prices("shufersal", store_id="001")

for gtin, by_chain in ilp.group_by_gtin(
    {"super-pharm": sp, "shufersal": sh}, min_sources=2
).items():
    print(gtin, {chain: it.price for chain, it in by_chain.items()})

Each row also exposes item.gtin (canonical GTIN-14, or None) and item.is_barcoded. Loose/weighted goods — fresh produce, deli — use per-chain internal codes with no shared key, so they can't be joined this way; gtin is None for them by design.

Prices with promotions

A store's promotions come in a separate file from its prices. by_item_code() indexes a promotions file so each price row can look up the promotions it takes part in, together with the promotion's row for that item, which carries the reward (discounted_price, discount_rate, min_qty):

prices = ilp.get_prices("victory", store_id="001")
promos = ilp.get_promos("victory", store_id="001").by_item_code()

for item in prices.items:
    for promo, row in promos.get(item.item_code, []):
        print(item.name, item.price, "->", row.discounted_price, promo.club_id)

The key is the raw item_code, so weighted and internal codes join too (their gtin is None). An item can sit in several promotions, e.g. one for all customers and a cheaper one for club members (club_id).

Lower-level API

from israeli_prices import FileType, list_files, download, parse

refs = list_files("shufersal", file_type=FileType.PROMO_FULL, limit=5)
payload = download(refs[0])          # raw gzipped XML, as published
promo_file = parse(payload)          # auto-detects the file kind

Some portals sign their download URLs with a short expiry (Shufersal) — download right after listing. Some portals are geo-restricted to Israeli IPs; pass a proxy via HttpClient(proxy=...) if you fetch from abroad.

Data notes

  • Timestamps are naive local Israel time, as published.
  • Prices are Decimal, in ILS (ItemPrice from the source files).
  • item_code is usually a GTIN/barcode but chains also publish internal codes (item_type is the retailer's own flag). Use item.gtin for a canonical GTIN-14 (or None) and group_by_gtin to join across chains — see Compare across chains.
  • Hebrew text is preserved as published; encodings (UTF-8 BOM, UTF-16) are handled transparently.
  • Freshness: chains publish incremental Price/Promo files throughout the day and daily PriceFull/PromoFull snapshots per store.
  • Scope: the law covers each retailer's own sales only — e.g. Wolt's feed contains Wolt Market (its dark stores), not the partner retailers on the Wolt platform. Per-chain caveats live in docs/chains.md.

License

MIT © RxRadar Inc. — the data itself is published by the chains under Israel's price-transparency regulation and remains theirs; this library just fetches and parses it. Be a good citizen: cache locally and keep request rates reasonable.

Metadata

Release files for israeli-prices 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for israeli-prices 0.3.1
File Size Uploaded Provenance Actions
israeli_prices-0.3.1.tar.gz 43.9 kB With provenance Details for israeli_prices-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for israeli-prices 0.3.1
File Interpreter ABI Platform Actions
israeli_prices-0.3.1-py3-none-any.whl Python 3 none any Details for israeli_prices-0.3.1-py3-none-any.whl

Total release size: 77.5 kB

Release files / israeli_prices-0.3.1.tar.gz

Download URL israeli_prices-0.3.1.tar.gz
Size 43.9 kB
Tags Source
SHA-256 checksum
How to use checksums
066a3722ac518fa2df4149e57e63dfe12698e3539adc20c2d119477fe1dce7e5
BLAKE2b-256 checksum
How to use checksums
b95c22fa7cdbbab6fa78f975c731be2609e0e5b520ca2f4a3426fa6d447fc8b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / israeli_prices-0.3.1-py3-none-any.whl

Download URL israeli_prices-0.3.1-py3-none-any.whl
Size 33.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
65b8eb155d6f5b9e933f4c5f6a92323911e83486f7340104c52431cadf077558
BLAKE2b-256 checksum
How to use checksums
70c8bd42beda2b2f94361ffdf3294252a2bb5a2eec44e0ff24ef8e697271b14d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for israeli-prices 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for israeli_prices-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page