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.
$ pip install hdateProvide the times of the day in Hebrew...
>>>importhdate>>>importdatetime>>>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.
>>>fromhdate.translatorimportset_language>>>set_language("en")
>>>z=hdate.Zmanim(date=datetime.date(2016, 4, 18), location=c)
>>>print(z)
AlotHaShachar-04:50:00Talit&Tefilin'stime-05:16:00Sunrise-06:07:00ShemaEOTMG"A-08:45:00ShemaEOTGR"A-09:22:00TefilaEOTMG"A-10:03:20TefilaEOTGR"A-10:27:00Midday-12:40:00BigMincha-13:09:30BigMincha30min-13:10:00SmallMincha-16:24:30PlagMincha-17:51:45Sunset-19:13:00Endoffast-19:41:00EndofShabbat-19:51:00TsetHakochavim (18minutes) -19:32:30NightbyRabbeinuTam-20:31:00Midnight-00:40:00Provide 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)
Monday10Nisan5776