Skip to main content

Package for manipulating Hebrew dates and Gregorian-Hebrew conversion

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

Installation

Still under developement. When completed 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pyluach-0.2.0.dev0-py2-none-any.whl (15.1 kB view details)

Uploaded Python 2

File details

Details for the file pyluach-0.2.0.dev0-py2-none-any.whl.

File metadata

File hashes

Hashes for pyluach-0.2.0.dev0-py2-none-any.whl
Algorithm Hash digest
SHA256 7a334999209f7d94afd816000a82eb80ef96dc438430e883e599f42f332cecb3
MD5 13415b67dcd81f10bd063676604e904e
BLAKE2b-256 0744090e29c03890d5c224c7d9fee52b397b4ca706fb680e7c8e5eb27d0e7c95

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page