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, get_autocomplete_lists

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.
  • get_autocomplete_lists() -> dict

    • Returns static lists for autocomplete:
      • cities: array of cities
      • cities_and_neighborhoods: array of cities and neighborhoods

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.2.tar.gz (17.7 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.2-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pynadlan-0.1.2.tar.gz
  • Upload date:
  • Size: 17.7 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.2.tar.gz
Algorithm Hash digest
SHA256 e852f69d4a84a525c591e9d5ef0d48d85640ed93bfb87bbbfb0e57043d280781
MD5 27f867b0a60fc5f5a797003eca907d26
BLAKE2b-256 db6e01721d784c2be567aceb0276c92520e74e85dae9eaa7088614289a96d954

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pynadlan-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0c886d4168e97eaa78796b228ec9848227d3b03acbebdbda8ef24d409d717f5b
MD5 b59ab4852149f2047f92a3e0a99a29c9
BLAKE2b-256 2cc60e8e4d04a13dc97ff1db5a57b44e4d9dd42db4138f954527ec3fe1502602

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