A Python package for handling Hebrew dates
Project description
hebrewdate
Python module for handling Hebrew dates
This module provides classes and functions for handling Hebrew calendar dates and conversions.
It offers four main classes:
HebrewDate: Represents a specific date in the Hebrew calendar, with support for conversions to/from Gregorian dates, manipulation of dates (e.g., adding or subtracting days, months, or years), and various date-related attributes such as day, month, year, and weekday in the Hebrew calendar.HebrewYear: Represents a Hebrew year, managing leap year calculations, month lengths, and determining the first weekday of the year.HebrewCalendar: Extends the standard Calendar class to provide Hebrew calendar functionality, including methods for iterating over month days and converting between Hebrew and Gregorian dates.HTMLHebrewCalendar: Provides HTML formatting of Hebrew calendar data with support for both Hebrew and Gregorian date display, custom CSS styling, and RTL formatting.
Key Features:
- Conversion between Hebrew and Gregorian dates.
- Computation of weekdays, month lengths, and leap years for Hebrew dates.
- Operations for date arithmetic, such as adding and subtracting days, months, and years.
- Methods for obtaining today's Hebrew date or constructing a Hebrew date from a Gregorian date.
- Calendar iteration and formatting for Hebrew dates in HTML format.
- Right-to-left (RTL) HTML calendar display with optional Gregorian date annotations.
- Customizable CSS styling for calendar presentation.
- Support for generating complete calendar pages for months and years.
Note: This module supports accurate conversions for Hebrew dates corresponding to Gregorian dates on or after the year 1752. For earlier dates, calculations may have inaccuracies due to historical and calendar system variations.
Author: Isaac Dovolsky Created: 2025
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
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 hebrewdate-1.0.0.tar.gz.
File metadata
- Download URL: hebrewdate-1.0.0.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb8ef367b41bbcad1ebf7e00c74aef6ecb90b1262bed707522af52420a2e70df
|
|
| MD5 |
99c4cb80f7dcf3d6a55ca05251c6427a
|
|
| BLAKE2b-256 |
7384d614cf3f7647ac2a8b3630f8cf1c253a0fe429aa01a50920174a247f7b56
|
Provenance
The following attestation bundles were made for hebrewdate-1.0.0.tar.gz:
Publisher:
python-publish.yml on Isaac-D20/hebrewdate
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hebrewdate-1.0.0.tar.gz -
Subject digest:
bb8ef367b41bbcad1ebf7e00c74aef6ecb90b1262bed707522af52420a2e70df - Sigstore transparency entry: 204356713
- Sigstore integration time:
-
Permalink:
Isaac-D20/hebrewdate@824578bbd8908da5d899f8e0361c8de166be3f01 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/Isaac-D20
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@824578bbd8908da5d899f8e0361c8de166be3f01 -
Trigger Event:
release
-
Statement type:
File details
Details for the file hebrewdate-1.0.0-py3-none-any.whl.
File metadata
- Download URL: hebrewdate-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cf736fd81ab487e93a03961229ae245c376f5322c44a66ef181f879e7d97b3c
|
|
| MD5 |
49ecbffc7fe5ba2b58b687f11994ad45
|
|
| BLAKE2b-256 |
5bc837047667c853caa082f000c8f7a3f7dfe55cfac4ce7b980f08681d478eb1
|
Provenance
The following attestation bundles were made for hebrewdate-1.0.0-py3-none-any.whl:
Publisher:
python-publish.yml on Isaac-D20/hebrewdate
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hebrewdate-1.0.0-py3-none-any.whl -
Subject digest:
6cf736fd81ab487e93a03961229ae245c376f5322c44a66ef181f879e7d97b3c - Sigstore transparency entry: 204356719
- Sigstore integration time:
-
Permalink:
Isaac-D20/hebrewdate@824578bbd8908da5d899f8e0361c8de166be3f01 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/Isaac-D20
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@824578bbd8908da5d899f8e0361c8de166be3f01 -
Trigger Event:
release
-
Statement type: