Skip to content

v1.2.0 - Initial Release

Choose a tag to compare

@0xdolan 0xdolan released this 24 Mar 05:42
· 20 commits to main since this release
e01276d

pyroj is a specialized Python library designed to bridge the gap between international calendar systems and the Kurdish calendar. It provides a simple, object-oriented way to convert dates from both Gregorian and Solar Hijri (Shamsi) calendars into the Kurdish format.

Key Features:

  • Bi-directional Conversion: Effortlessly convert to and from Kurdish dates.
  • Solar & Gregorian Support: Handle input from both the Western (Gregorian) and Iranian (Solar) systems.
  • Localized Attributes: Access Kurdish year numbers and localized Kurdish month names directly from the Rojjmer object.
  • Simple API: Designed for developers, requiring only a few lines of code to integrate Kurdish date support.

Example Usage:

from pyroj import rojjmer

# Create a date object (Year, Month, Day)
CAL = rojjmer.Rojjmer(2026, 3, 23)

# Convert to Kurdish
print(CAL.to_kurdish())      # Output: 2726-01-03
print(CAL.get_month_name())  # Output: Xakelêwe