Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/essel-dev/jewcal
Convert Gregorian to Jewish dates with holidays and zmanim (Diaspora/Israel).
https://github.com/essel-dev/jewcal
hebrew-calendar jewish-calendar shabbos yomtov zmanim
Last synced: 2 months ago
JSON representation
Convert Gregorian to Jewish dates with holidays and zmanim (Diaspora/Israel).
- Host: GitHub
- URL: https://github.com/essel-dev/jewcal
- Owner: essel-dev
- License: mit
- Created: 2022-08-16T09:05:37.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-28T07:50:03.000Z (5 months ago)
- Last Synced: 2024-09-28T12:09:33.463Z (3 months ago)
- Topics: hebrew-calendar, jewish-calendar, shabbos, yomtov, zmanim
- Language: Python
- Homepage: https://jewcal.readthedocs.io/
- Size: 292 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
.. include_title_start
JewCal
======.. include_title_end
.. image:: https://github.com/essel-dev/jewcal/actions/workflows/tests.yml/badge.svg
:target: https://github.com/essel-dev/jewcal/actions/workflows/tests.yml
:alt: Tests Status
.. image:: https://github.com/essel-dev/jewcal/actions/workflows/pypi.yml/badge.svg
:target: https://github.com/essel-dev/jewcal/actions/workflows/pypi.yml
:alt: PyPi Status
.. image:: https://readthedocs.org/projects/jewcal/badge/?version=latest
:target: https://jewcal.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status|
.. include_intro_start
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 MelachaIf latitude and longitude are specified, nightfall is taken into account to calculate
the Jewish date... include_intro_end
.. include_quickstart_start
Quickstart
----------Install with pip:
.. code-block:: bash
pip install jewcal
Run in the console:
.. code-block:: bash
jewcal
The output:
.. code-block:: console
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()=FalseJewCal(
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
).. include_quickstart_end
Resources
---------- `JewCal @ PyPI `_
- `JewCal @ Read the Docs `_