Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/py-libhdate/py-libhdate
Python 3 library for Hebrew date and zmanim (times) objects in python
https://github.com/py-libhdate/py-libhdate
hebrew-calendar python-library python27 python3 python3-library
Last synced: 3 months ago
JSON representation
Python 3 library for Hebrew date and zmanim (times) objects in python
- Host: GitHub
- URL: https://github.com/py-libhdate/py-libhdate
- Owner: py-libhdate
- License: gpl-3.0
- Created: 2016-04-11T11:12:58.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2023-10-16T12:26:46.000Z (9 months ago)
- Last Synced: 2024-01-17T11:10:08.003Z (6 months ago)
- Topics: hebrew-calendar, python-library, python27, python3, python3-library
- Language: Python
- Homepage:
- Size: 573 KB
- Stars: 24
- Watchers: 5
- Forks: 10
- Open Issues: 17
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE
Lists
- awesome-jewish-github - py-libhdate/py-libhdate - Python hebrew date converte and Zmanim library (Projects / Zmanim)
README
***********
py-libhdate
***********Jewish/Hebrew date and Zmanim in native python 3.x
Originally ported from libhdate, see http://libhdate.sourceforge.net/ for more details (including license)
===========
Installation using pip:
#######################.. code :: shell
$ pip install hdate
===========
Examples:
#########base code to provide times of the day in hebrew:
.. code :: python
>>> 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, hebrew=True)
>>> print(z)
עלות השחר - 04:52:00
זמן טלית ותפילין - 05:18:00
הנץ החמה - 06:08:00
סוף זמן ק"ש מג"א - 08:46:00
סוף זמן ק"ש גר"א - 09:23:00
סוף זמן תפילה מג"א - 10:04:00
סוף זמן תפילה גר"א - 10:28:00
חצות היום - 12:40:00
מנחה גדולה - 13:10:30
מנחה קטנה - 16:25:30
פלג המנחה - 17:50:45
שקיעה - 19:12:00
צאת הכוכבים - 19:38:00
חצות הלילה - 00:40:00and in english:
.. code :: python
>>> z = hdate.Zmanim(date=datetime.date(2016, 4, 18), location=c, hebrew=False)
>>> print(z)
Alot HaShachar - 04:52:00
Talit & Tefilin's time - 05:18:00
Sunrise - 06:08:00
Shema EOT MG"A - 08:46:00
Shema EOT GR"A - 09:23:00
Tefila EOT MG"A - 10:04:00
Tefila EOT GR"A - 10:28:00
Midday - 12:40:00
Big Mincha - 13:10:30
Small Mincha - 16:25:30
Plag Mincha - 17:50:45
Sunset - 19:12:00
First stars - 19:38:00
Midnight - 00:40:00===========
to provide the full hebrew date:
.. code :: python
>>> h = hdate.HDate(datetime.date(2016, 4, 26), hebrew=True)
>>> print(h)
יום שלישי י"ח בניסן ה' תשע"ו ג' בעומר חול המועד פסחand in english:
.. code :: python
>>> h = hdate.HDate(datetime.date(2016, 4, 18), hebrew=False)
>>> print(h)
Monday 10 Nisan 5776