Skip to content

Releases: 0xdolan/pyroj

v1.2.4

24 Mar 08:27
e0b3bd3

Choose a tag to compare

What's changed

  • Add and align dynamic Kurdish dialect month-variant support across ckb and kmr families.
  • Document full locale/dialect tables and multi-name month behavior.
  • Update package version to 1.2.4 and verify with pytest, ruff, and mypy.

Validation

  • uv run pytest -q
  • uv run ruff check pyroj tests
  • uv run mypy pyroj

v1.2.3

24 Mar 07:55
7e41e57

Choose a tag to compare

Release Highlights

  • Added dynamic Kurdish dialect locale support with first-class kmr (Kurmanji, Latin) and ckb (Sorani, Arabic script).
  • Introduced locale resolver APIs with deterministic fallback and backward-compatible ku behavior.
  • Localized datetime %p output to use locale-specific AM/PM strings.

Locale & API Changes

  • Added LocaleId.KMR and LocaleId.CKB.
  • Added resolver helpers for string/enum locale negotiation with fallback to en.
  • Preserved ku as compatibility alias mapped to ckb.
  • Updated formatter entry points to accept dynamic locale strings.

Data, Tests, and Docs

  • Expanded locale catalog with dedicated kmr/ckb blocks.
  • Added regression coverage for resolver behavior, digit shaping, and locale-aware AM/PM.
  • Updated docs and README examples to reflect dialect-first locale usage.

CI/Release Reliability Improvements

  • Updated CI to avoid deprecated Node20-dependent action paths.
  • Separated package build from tag-only PyPI publish.
  • Added manual workflow trigger support (workflow_dispatch).

v1.2.2

24 Mar 06:34
be23ca7

Choose a tag to compare

Bump version to 1.2.2

v1.2.0 - Initial Release

24 Mar 05:42
e01276d

Choose a tag to compare

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