Skip to main content

Pyluach is a Python package for manipulating Hebrew dates, Gregorian-Hebrew calendar conversions, and other Jewish calendar related calculations.

Project description

Documentation Status https://travis-ci.org/simlist/pyluach.svg?branch=master https://coveralls.io/repos/github/simlist/pyluach/badge.svg?branch=master

Pyluach is a Python package for manipulating Hebrew (Jewish) 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, parshios

>>> 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 ...

>>> date = dates.GregorianDate(2010, 10, 6)
>>> print(parshios.getparsha(date))
[0]
>>> print(parshios.getparsha_string(date))
Beraishis

Documentation

Documentation for pyluach can be found at https://readthedocs.org/projects/pyluach/.

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 Distribution

pyluach-1.1.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyluach-1.1.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file pyluach-1.1.0.tar.gz.

File metadata

  • Download URL: pyluach-1.1.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

File hashes

Hashes for pyluach-1.1.0.tar.gz
Algorithm Hash digest
SHA256 fed9319cfb193a47c25d5208f75b94b9d659ca73b20364b08ffc9ff9b011b747
MD5 df43be4288e422aef97f6e54e7ffdf69
BLAKE2b-256 5b6501c2c58e3bf99680f4c3cee0da000fdafb32f229aa1c317f3d15eb321e44

See more details on using hashes here.

File details

Details for the file pyluach-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pyluach-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

File hashes

Hashes for pyluach-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16ced11ba9dd286c015f8875fe724316ca223e3faa49ef0b2153e682122d2307
MD5 3b9a5ee8e9af7e57cbb8da3fe64f2a3c
BLAKE2b-256 31f3852eb6be0788cb58095567f2f3e794a4c1571d13e29265416bfb8e6d9a41

See more details on using hashes here.

Supported by

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