Skip to main content

A Python wrapper for the israel Nadlan prices.

Project description

pynadlan

Lightweight async helpers to fetch Israeli real-estate histogram data by city/neighborhood and extract the latest sell/rent prices per room count.

Installation

pip install -e .

Quickstart

import asyncio
from pynadlan.api import get_avg_prices, get_rent_prices

async def main():
    query = "רמת גן"  # city or neighborhood

    sell_latest = await get_avg_prices(query)
    # => {"sell_2_price": 2500000, "sell_3_price": 3200000, ...}
    print(sell_latest)

    rent_latest = await get_rent_prices(query)
    # => {"rent_2_price": 6500, "rent_3_price": 7500, ...}
    print(rent_latest)

    # Filter by specific room counts
    print(await get_avg_prices(query, rooms=[3, 4]))
    print(await get_rent_prices(query, rooms=2))

if __name__ == "__main__":
    asyncio.run(main())

API

  • get_avg_prices(query: str, rooms: int | list[int] | None = None) -> dict

    • Returns the latest sell prices keyed by sell_{rooms}_price.
    • If rooms is omitted, returns all available room-based series from the endpoint.
    • If rooms is provided but some series are missing in the payload, they are returned as None.
  • get_rent_prices(query: str, rooms: int | list[int] | None = None) -> dict

    • Returns the latest rent prices keyed by rent_{rooms}_price.
    • Same filtering behavior as get_avg_prices.

Notes

  • The functions are async and should be awaited.
  • Input query is URL-encoded automatically.
  • Output values are the last value from each histogram series.

Project details


Download files

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

Source Distribution

pynadlan-0.1.1.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

pynadlan-0.1.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file pynadlan-0.1.1.tar.gz.

File metadata

  • Download URL: pynadlan-0.1.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pynadlan-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5a3d7e8a7fcecafbe5bb23398d148825f815b4c206058c6dd7a15e7d0529be3f
MD5 b33d4265ccbdcdab5986f40a903e56bd
BLAKE2b-256 09a44f7e28ce5b54df5039a22e547f72d5d2debe404562a853a4183a73bd705f

See more details on using hashes here.

File details

Details for the file pynadlan-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pynadlan-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pynadlan-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d137103c8d089e0105c9dbed39127bfead99bc7bcc0e9c31c55693276eae5b06
MD5 5bbf84e51475f081dbf08d4d4cbee93e
BLAKE2b-256 d7f79253b0185d15a70df1139a354c150a9c44477eae03b0147e63abae6e3a00

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page