PyCalverter is a Python library for converting between various calendar systems, including Gregorian, Julian, Islamic, Hebrew, Persian, Indian civil, Baháʼí, and more. Version 1.6.1 is the current release, with intermittent updates.
pip install pycalverterVerified import paths — ran on the pinned version, not inferred.
Initialize a CalendarConverter, use to_jdn/from_jdn for conversions. Supported calendars: GREGORIAN, JULIAN, ISLAMIC, HEBREW, PERSIAN, INDIAN_CIVIL, BAHAI, etc.
Create a new CalendarConverter for each conversion or use the module-level functions if available (but there are none). Safer: conv = CalendarConverter(...) per call.
Use uppercase strings exactly: 'GREGORIAN', 'JULIAN', 'ISLAMIC', 'HEBREW', 'PERSIAN', 'INDIAN_CIVIL', 'BAHAI'.
Use conv = CalendarConverter() and specify calendar in to_jdn and from_jdn: conv.to_jdn(year, month, day, 'GREGORIAN')
No dependency data recorded yet.