Skip to main content

israeli-prices

tests chains live 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().

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 distinguishes them).
  • 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

israeli_prices-0.1.0.tar.gz (34.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

israeli_prices-0.1.0-py3-none-any.whl (28.8 kB view details)

Uploaded Python 3

File details

Details for the file israeli_prices-0.1.0.tar.gz.

File metadata

  • Download URL: israeli_prices-0.1.0.tar.gz
  • Upload date:
  • Size: 34.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for israeli_prices-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b5dbb9507df25c57fc0a9a2323867766176f6db48e7edb84b1f928d4aed1b612
MD5 2da69ae45bd89f2ac1936134ff1bc79d
BLAKE2b-256 0aa0e0a139ef9f135d313d608bf80327beb95229be8e6bd9c225c8a9f8273859

See more details on using hashes here.

Provenance

The following attestation bundles were made for israeli_prices-0.1.0.tar.gz:

Publisher: release.yml on rxradar/israeli-prices

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file israeli_prices-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: israeli_prices-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for israeli_prices-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d8e55fecd280100ca481ca90b22f3dda75c56d6b149404712335437559e7a54
MD5 c6a4f18ade14ab31dda57ad4b7753d8b
BLAKE2b-256 7804b2d9dbeced09e27576ff418441f09938de5b30a595f0abe12e099baf4db1

See more details on using hashes here.

Provenance

The following attestation bundles were made for israeli_prices-0.1.0-py3-none-any.whl:

Publisher: release.yml on rxradar/israeli-prices

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.0

2 files

0.1.1

2 files

This release

0.1.0 This release

2 files

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