Releases: 0xdolan/pyroj
Releases · 0xdolan/pyroj
v1.2.4
What's changed
- Add and align dynamic Kurdish dialect month-variant support across
ckbandkmrfamilies. - 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 -quv run ruff check pyroj testsuv run mypy pyroj
v1.2.3
Release Highlights
- Added dynamic Kurdish dialect locale support with first-class
kmr(Kurmanji, Latin) andckb(Sorani, Arabic script). - Introduced locale resolver APIs with deterministic fallback and backward-compatible
kubehavior. - Localized datetime
%poutput to use locale-specific AM/PM strings.
Locale & API Changes
- Added
LocaleId.KMRandLocaleId.CKB. - Added resolver helpers for string/enum locale negotiation with fallback to
en. - Preserved
kuas compatibility alias mapped tockb. - Updated formatter entry points to accept dynamic locale strings.
Data, Tests, and Docs
- Expanded locale catalog with dedicated
kmr/ckbblocks. - 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
v1.2.0 - Initial Release
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
Rojjmerobject. - 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