Package for manipulating Hebrew dates, Gregorian-Hebrew conversion, and other Hebrew calendar related calculations.
Project description
Pyluach is a Python package for manipulating Hebrew calendar dates and Hebrew-Gregorian conversions.
Features
Conversion between Hebrew and Gregorian dates
Finding the difference between two dates
Finding a date at a given duration from the given date
Rich comparisons between dates
Finding the weekday of a given date
Finding the weekly Parsha reading of a given date
Installation
Use pip install pyluach.
Typical use
from pyluach import dates, hebrewcal >>> today = dates.HebrewDate.today() >>> lastweek_gregorian = (today - 7).to_greg() >>> lastweek_gregorian < today True >>> today - lastweek_gregorian 7 >>> greg = GregorianDate(1986, 3, 21) >>> heb = HebrewDate(5746, 13, 10) >>> greg == heb True >>> for month in hebrewcal.Year(5774).itermonths(): ... print month.name Tishrei Cheshvan ...
Contact
For questions and comments feel free to contact me at simlist@gmail.com.
License
Pyluach is licensed under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyluach-0.3.0.dev0.tar.gz
(11.5 kB
view hashes)
Built Distribution
Close
Hashes for pyluach-0.3.0.dev0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 826b2c568e277289a57e888aa2cb19ddfeed60b6d5c3ad56bdf82db28339e443 |
|
MD5 | d200bf43481d1d519393e5b38acfb80c |
|
BLAKE2b-256 | 94f210bb6bb80664638cf0abf3f44a6a49f3a50ca924bc6ef7c6bcaab4f20065 |