Skip to main content

Unofficial API for the Israeli Home Front Command

Project description

Oref

License: MIT

Oref is an unofficial Python wrapper for Israel’s Home Front Command alert system. It mimics the official website’s functionality, enabling Python-based access and alert monitoring.

Features

  • Live and one-time alert checks
  • Area-specific filtering
  • Multilingual support (ar, he, ru)
  • Location and guideline retrieval

Installation

pip install oref

Requirements

  • Python 3.11+
  • requests 2.31+

Usage

import oref
from oref.types import Alert

# Initialise (default: English only)
oref.init()

# Add more languages (supported: "ar", "he", "ru")
oref.init(extra_languages=["ar", "he"])

# One-time alert check (default: all areas)
oref.check_alert()

# Check specific areas (by name or ID)
oref.check_alert(["Tel Aviv - South and Jaffa", 439, "Givatayim"])

# Live alert monitoring
def callback(alert: Alert):
    print(alert)

oref.listen(callback)  # Optional: areas=[...]

# Alternatively:
oref.alerts.listen(callback)

# Retrieve available locations
oref.get_locations()  # -> List[oref.types.Location]

# Retrieve guidelines
oref.get_guidelines()  # -> List[oref.types.Guideline]

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

oref-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

oref-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oref-0.1.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for oref-0.1.0.tar.gz
Algorithm Hash digest
SHA256 27ea03835f7fbf7408fc63534dc82d59fa87eb6309b1092a6cb400eae3f2cf09
MD5 f2ac6d242f9672688c7c9a0ed1ebbf31
BLAKE2b-256 856760475989f4b1f689251be9b4de7e2a907ebdb31fd934ac321bfb8fd054f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oref-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for oref-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14e00f3c967415a25bd34f3da207ffa89b16af95b3e43609be76e717a6374a22
MD5 139cbe3db8dcb928b17e487eb277f09e
BLAKE2b-256 d93a16d384e7a5d1a2cfd0fb6990549ba79d0694a8e5225cbc8551f2dae4ebb4

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