The hdate Python library’s purpose is to provide information about the Hebrew date and times.
Originally ported from the C version of libhdate by Royi Reshef, it is currently maintained by Tsvi Mostovicz and is the backend library for Home Assistant’s Jewish Calendar integration.
Installation using pip:
$ pip install hdate
Examples:
Provide the times of the day in Hebrew…
>>> import hdate
>>> import datetime
>>> c = hdate.Location("פתח תקוה", 32.08707, 34.88747, "Asia/Jerusalem", 54)
>>> z = hdate.Zmanim(date=datetime.date(2016, 4, 18), location=c)
>>> print(z)
עלות השחר - 04:50:00
זמן טלית ותפילין - 05:16:00
הנץ החמה - 06:07:00
סוף זמן ק"ש מג"א - 08:45:00
סוף זמן ק"ש גר"א - 09:22:00
סוף זמן תפילה מג"א - 10:03:20
סוף זמן תפילה גר"א - 10:27:00
חצות היום - 12:40:00
מנחה גדולה - 13:09:30
מנחה גדולה 30 דק - 13:10:00
מנחה קטנה - 16:24:30
פלג המנחה - 17:51:45
שקיעה - 19:13:00
מוצאי צום - 19:41:00
מוצאי שבת - 19:51:00
צאת הכוכבים (18 דק) - 19:32:30
לילה לרבנו תם - 20:31:00
חצות הלילה - 00:40:00
… and in English.
>>> from hdate.translator import set_language
>>> set_language("en")
>>> z = hdate.Zmanim(date=datetime.date(2016, 4, 18), location=c)
>>> print(z)
Alot HaShachar - 04:50:00
Talit & Tefilin's time - 05:16:00
Netz Hachama - 06:07:00
Sof Zman Shema (Mg"A) - 08:45:00
Sof Zman Shema (Gr"A) - 09:22:00
Sof Zman Tefilla (Mg"A) - 10:03:20
Sof Zman Tefilla (Gr"A) - 10:27:00
Chatzot Hayom - 12:40:00
Mincha Gedola - 13:09:30
Mincha Gedola 30 min - 13:10:00
Mincha Ketana - 16:24:30
Plag Hamincha - 17:51:45
Shkia - 19:13:00
End of fast - 19:41:00
End of Shabbat - 19:51:00
Tset Hakochavim (18 minutes) - 19:32:30
Night by Rabbeinu Tam - 20:31:00
Midnight - 00:40:00
Provide the full Hebrew date …
>>> set_language("he")
>>> h = hdate.HDateInfo(datetime.date(2016, 4, 26))
>>> print(h)
יום שלישי י"ח בניסן ה' תשע"ו ג' לעומר חול המועד פסח
… and in English.
>>> set_language("en")
>>> h = hdate.HDateInfo(datetime.date(2016, 4, 18))
>>> print(h)
Monday 10 Nisan 5776
Release files for hdate 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hdate-1.2.2.tar.gz | 81.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hdate-1.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 136.9 kB
Release files / hdate-1.2.2.tar.gz
| Download URL | hdate-1.2.2.tar.gz |
|---|---|
| Size | 81.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d0a5346afd9cddb8dd72b502bf0df0572dc398444b112b432e044fe6a719dfa
|
|
BLAKE2b-256 checksum How to use checksums |
41827cb8ed68776d49af941fba64345d59038458ec8999145581ef21378b8ba8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.29.0 CPython/3.14.7 Linux/6.17.0-1022-azure
|
Release files / hdate-1.2.2-py3-none-any.whl
| Download URL | hdate-1.2.2-py3-none-any.whl |
|---|---|
| Size | 55.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35eb1874dfa9376957ba70585ddb4e2236871494251261f9f0486fedfc8d49f1
|
|
BLAKE2b-256 checksum How to use checksums |
804de56b1142c10750db5c557a20e26335edddd743c17cfd5d1aa9ba0261e676
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.29.0 CPython/3.14.7 Linux/6.17.0-1022-azure
|