Skip to main content

Convert Gregorian to Jewish dates with holidays and zmanim (Diaspora/Israel).

Project description

Tests Status PyPi Status Documentation Status

Convert Gregorian to Jewish dates with holidays and zmanim (Diaspora/Israel).

Get info about:

  • The Jewish date

  • Shabbos and Yom Tov events

  • The action (Candles or Havdalah)

  • The zmanim

    • Sunrise

    • Sunset

    • Plag Hamincha

    • Hadlokas Haneiros (adjust the minutes before sunset)

    • Tzeis (adjust to stars or minutes after sunset)

Determine whether it is:

  • Erev Shabbos or Erev Yom Tov

  • Shabbos

  • Yom Tov

  • Issur Melacha

If latitude and longitude are specified, nightfall is taken into account to calculate the Jewish date.

Quickstart

Install with pip:

pip install jewcal

Run in the console:

jewcal

The output:

Today is 23 Iyar 5784

today.has_events()=True
today.is_erev()=True
today.is_erev_shabbos()=True
today.is_shabbos()=False
today.is_erev_yomtov()=False
today.is_yomtov()=False
today.is_issur_melacha()=False

JewCal(
  jewish_date=JewishDate(
    year=5784, month=2, day=23,
    gregorian_date=datetime.date(2024, 5, 31)
  ),
  events=Events(
    shabbos='Erev Shabbos',
    yomtov=None,
    action='Candles'
  ),
  diaspora=True,
  zmanim=None
)


Zmanim for Jerushalayim:
{
  'hadlokas_haneiros': '2024-05-31T15:59:58.418285+00:00',
  'plag_hamincha': '2024-05-31T15:11:40.067150+00:00',
  'sunrise': '2024-05-31T02:32:14.247357+00:00',
  'sunset': '2024-05-31T16:39:58.418285+00:00',
  'tzeis_hakochavim': '2024-05-31T17:21:58.418285+00:00',
  'tzeis_minutes': '2024-05-31T17:51:58.418285+00:00'
}

Location(
  latitude=31.76904, longitude=35.21633,
  use_tzeis_hakochavim=True,
  hadlokas_haneiros_minutes=40,
  tzeis_minutes=72
)

Resources

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

jewcal-0.7.3.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

jewcal-0.7.3-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file jewcal-0.7.3.tar.gz.

File metadata

  • Download URL: jewcal-0.7.3.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for jewcal-0.7.3.tar.gz
Algorithm Hash digest
SHA256 534d93b4d9be549d69ea5222bc66f7fef1d4873d3e1985349b22f7493cc905a3
MD5 19204867b2d846f450be0216d14a1777
BLAKE2b-256 2af18476d52e375c26abd88467083a860de2211dee8d49ec79a93982f3d8f8ba

See more details on using hashes here.

File details

Details for the file jewcal-0.7.3-py3-none-any.whl.

File metadata

  • Download URL: jewcal-0.7.3-py3-none-any.whl
  • Upload date:
  • Size: 19.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for jewcal-0.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 82da02ef5591213594987ea67b54bfc25ac4563e8017461d5d4e8df37c6a4337
MD5 ccc17b81fdcee23e8c6517f33ec957cc
BLAKE2b-256 dba546f4d1d1d6378ea23dad16ce6e5cf2da25d5ee92459142ea02ad7968bb83

See more details on using hashes here.

Supported by

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