Convert Gregorian to Jewish dates and get Shabbos / Yom Tov details for Diaspora and Israel.
Project description
JewCal
Convert Gregorian to Jewish dates and get Shabbos / Yom Tov details for Diaspora and Israel.
Installation
pip install jewcal
Usage
Diaspora
>>> from datetime import date
>>> from jewcal import JewCal
>>> jewcal = JewCal(date(2022, 4, 17))
>>> print(jewcal)
16 Nisan 5782
>>> print(repr(jewcal))
JewCal(year=5782, month=1, day=16, gregorian_date=datetime.date(2022, 4, 17),
shabbos=None, yomtov='Pesach 2', category='Havdalah', diaspora=True)
Israel
>>> from datetime import date
>>> from jewcal import JewCal
>>> jewcal = JewCal(date(2022, 4, 17), diaspora=False)
>>> print(jewcal)
16 Nisan 5782
>>> print(repr(jewcal))
JewCal(year=5782, month=1, day=16, gregorian_date=datetime.date(2022, 4, 17),
shabbos=None, yomtov='Chol HaMoed 1 (Pesach 2)', category=None, diaspora=False)
Possible values
Shabbos
jewcal.shabbos |
jewcal.category |
|---|---|
None |
None |
Erev Shabbos |
Candles |
Shabbos |
Havdalah |
Yom Tov
Diaspora
jewcal.yomtov |
jewcal.category |
|---|---|
None |
None |
Erev Rosh Hashana |
Candles |
Rosh Hashana 1 |
Candles |
Rosh Hashana 2 |
Havdalah |
Erev Yom Kippur |
Candles |
Yom Kippur |
Havdalah |
Erev Sukkos |
Candles |
Sukkos 1 |
Candles |
Sukkos 2 |
Havdalah |
Chol HaMoed 1 (Sukkos 3) |
None |
Chol HaMoed 2 (Sukkos 4) |
None |
Chol HaMoed 3 (Sukkos 5) |
None |
Chol HaMoed 4 (Sukkos 6) |
None |
Hoshana Rabba (Sukkos 7) |
Candles |
Shmini Atzeres (Sukkos 8) |
Candles |
Simchas Tora |
Havdalah |
Erev Pesach |
Candles |
Pesach 1 |
Candles |
Pesach 2 |
Havdalah |
Chol HaMoed 1 (Pesach 3) |
None |
Chol HaMoed 2 (Pesach 4) |
None |
Chol HaMoed 3 (Pesach 5) |
None |
Chol HaMoed 4 (Pesach 6) |
Candles |
Pesach 7 |
Candles |
Pesach 8 |
Havdalah |
Erev Shavuos |
Candles |
Shavuos 1 |
Candles |
Shavuos 2 |
Havdalah |
Israel
jewcal.yomtov |
jewcal.category |
|---|---|
None |
None |
Erev Rosh Hashana |
Candles |
Rosh Hashana 1 |
Candles |
Rosh Hashana 2 |
Havdalah |
Erev Yom Kippur |
Candles |
Yom Kippur |
Havdalah |
Erev Sukkot |
Candles |
Sukkot 1 |
Havdalah |
Chol HaMoed 1 (Sukkot 2) |
None |
Chol HaMoed 2 (Sukkot 3) |
None |
Chol HaMoed 3 (Sukkot 4) |
None |
Chol HaMoed 4 (Sukkot 5) |
None |
Chol HaMoed 5 (Sukkot 6) |
None |
Hoshana Rabba (Sukkot 7) |
Candles |
Shmini Atzeret / Simchat Tora |
Havdalah |
Erev Pesach |
Candles |
Pesach 1 |
Havdalah |
Chol HaMoed 1 (Pesach 2) |
None |
Chol HaMoed 2 (Pesach 3) |
None |
Chol HaMoed 3 (Pesach 4) |
None |
Chol HaMoed 4 (Pesach 5) |
None |
Chol HaMoed 5 (Pesach 6) |
Candles |
Pesach 7 |
Havdalah |
Erev Shavuot |
Candles |
Shavuot |
Havdalah |
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jewcal-0.5.0.tar.gz.
File metadata
- Download URL: jewcal-0.5.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd788db0f9cd3f8014c667a14a03e6a0ce5b4dddbf9689447ca80462110bf118
|
|
| MD5 |
ba2993f3c386e45baa7d390e2898bff8
|
|
| BLAKE2b-256 |
eb2aaee8402ee54119b81ad9b331fa985d4d30e5f14e3419f5645cc44df3bf33
|
File details
Details for the file jewcal-0.5.0-py3-none-any.whl.
File metadata
- Download URL: jewcal-0.5.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ac5a93310885eeb37d85abd1e500d93df24f90099c7e2390e762298e74c8333
|
|
| MD5 |
380e3ba94541f29ff64d0e489fdd13bc
|
|
| BLAKE2b-256 |
faaf6a6052b15061a9d5eea3d839f90a7753cc10ca6fcad0740ace118f376698
|