{"id":13826109,"url":"https://github.com/0xdolan/pyroj","last_synced_at":"2025-07-08T23:31:05.915Z","repository":{"id":62583178,"uuid":"317175568","full_name":"0xdolan/pyroj","owner":"0xdolan","description":"Converting Gregorian and Solar dates to Kurdish date","archived":false,"fork":false,"pushed_at":"2023-09-24T10:38:36.000Z","size":36,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-26T10:05:22.456Z","etag":null,"topics":["calendar","gregorian","kurdish","kurdish-oss","python","python3","rojjmer","taqvim"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xdolan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-11-30T09:38:57.000Z","updated_at":"2024-07-18T09:28:35.000Z","dependencies_parsed_at":"2024-01-15T15:59:07.704Z","dependency_job_id":"91e73b72-f3a7-424a-8ce2-5c2d26244662","html_url":"https://github.com/0xdolan/pyroj","commit_stats":null,"previous_names":["dolanskurd/pyroj"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xdolan%2Fpyroj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xdolan%2Fpyroj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xdolan%2Fpyroj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xdolan%2Fpyroj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xdolan","download_url":"https://codeload.github.com/0xdolan/pyroj/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225470636,"owners_count":17479366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calendar","gregorian","kurdish","kurdish-oss","python","python3","rojjmer","taqvim"],"created_at":"2024-08-04T09:01:32.230Z","updated_at":"2024-11-20T04:31:18.160Z","avatar_url":"https://github.com/0xdolan.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# pyroj (Kurdish Calendar)\n\nWelcome to **pyroj (Kurdish Calendar)** - a small **_Python_** library for converting Gregorian and Solar dates to Kurdish date and vice versa.\n\n## Installation\n\nHow to install the module:\n\n`pip install pyroj`\n\nfor python 3 in Linux:\n\n`pip3 install pyroj`\n\nor\n\n`python3 -m pip install pyroj`\n\nInstall the package using the setup.py script:\nFirst cd into the root directory where setup.py is located, then install via below command:\n\n`python setup.py install`\n\n**Need help on installing Python modules, click on below link:**\n\n- [How to install Python modules](https://docs.python.org/3.9/installing/index.html)\n\n---\n\n## How to use pyroj\n\n### Get the Kurdish date\n\n```python\nfrom pyroj import rojjmer\n\n# make an instance from the class with Gregorian date\nCAL = rojjmer.Rojjmer(2020, 12, 28)\nprint(CAL.to_kurdish(solar=False))\n\n# Output:\n# 2720-10-08\n\n# make an instance from the class with Solar date\nCAL = rojjmer.Rojjmer(1399, 10, 8)\nprint(CAL.to_kurdish(solar=True))\n\n# Output:\n# 2720-10-08\n```\n\n### Get the Kurdish date - Only year, month or day\n\n```python\nfrom pyroj import rojjmer\n\n# make an instance from the class with Gregorian date\nCAL = rojjmer.Rojjmer(2020, 12, 28)\n\n# Get only the year\nprint(\"YEAR:\", CAL.to_kurdish().year)\n\n# Get only the month\nprint(\"MONTH:\", CAL.to_kurdish().month)\n\n# Get only the day\nprint(\"DAY:\", CAL.to_kurdish().day)\n\n# Output:\n# YEAR: 2720\n# MONTH: 10\n# DAY: 8\n```\n\n### Get the Kurdish Weekday (in Arabic-based and Latin-based)\n\n```python\nfrom pyroj import rojjmer\n\n# make an instance from the class with Gregorian date\nCAL = rojjmer.Rojjmer(2020, 12, 28)\n\nprint(\"WEEKDAY:\", CAL.hefte())\n# Output:\n# WEEKDAY: دووشەممە\n\nprint(\"WEEKDAY:\", CAL.hefte(abbr=False, latin=False))\n# Output:\n# WEEKDAY: دووشەممە\n\n\nprint(\"Abbreviated WEEKDAY:\", CAL.hefte(abbr=True, latin=False))\n# Output:\n# Abbreviated WEEKDAY: د\n\n\nprint(\"Abbreviated WEEKDAY:\", CAL.hefte(abbr=True, latin=True))\n# Output:\n# Abbreviated WEEKDAY: D\n\n\nprint(\"WEEKDAY:\", CAL.hefte(abbr=False, latin=True))\n# Output:\n# WEEKDAY: Dûşemme\n\n```\n\n### Get the Kurdish Month Names (in Arabic-based and Latin-based)\n\n```python\n\n# make an instance from the class with Gregorian date\nCAL = rojjmer.Rojjmer(2021, 3, 21)\n\nprint(\"Month Name:\", CAL.month_name())\n# Output:\n# Month Name: خاکەلێوە\n\n# Those months have two names, will be accessible via second_name parameter to be True\nprint(\"Month Name (second name):\", CAL.month_name(second_name=True))\n# Output:\n# Month Name: نەورۆز\n\nprint(\"Month Name:\", CAL.month_name(second_name=False, latin=True))\n# Output:\n# Month Name: Xakelêwe\n\n# Those months have two names, will be accessible via second_name parameter to be True\nprint(\"Month Name (second name):\", CAL.month_name(second_name=True, latin=True))\n# Output:\n# Month Name: Newroz\n\n```\n\n## To-Do List\n\n- N/A\n\n---\n\n## Getting help\n\nIf you have questions about the python library **pyroj** module, or run into problems, or if you want to contribute in any way, feel free to reach out to me via below links:\n\n- **[GitHub](https://github.com/dolanskurd/pyroj)**\n- **[PyPI](https://pypi.org/project/pyroj/)**\n- **[Twitter](http://www.twitter.com/dolanskurd)**\n- **E-mail: [dolanskurd@mail.com](mailto:dolanskurd@mail.com)**\n\n## License\n\nPyroj Library is available under the **MIT license**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xdolan%2Fpyroj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xdolan%2Fpyroj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xdolan%2Fpyroj/lists"}