# HijriDate
> formerly `hijri-converter`
A Python package to convert accurately between Hijri and Gregorian dates using
the Umm al-Qura calendar.
## Features
- Accurate and verified date conversion.
- Optimized code performance compared to similar packages.
- Intuitive, clean, and easy-to-use interface.
- Most of the methods and formats are similar to those of standard library.
- Multilingual representation of weekday names, months, and calendar era
notations.
- Easily extendable to support other natural languages.
- Rich comparison between dates.
- Validation of input dates.
- Works on Python 3.8+ with zero dependencies.
- Thoroughly tested with 100% test coverage.
## Limitations
- The date range supported by converter is limited to the period from the
beginning of 1343 AH (1 August 1924 CE) to the end of 1500 AH (16 November
2077 CE).
- The conversion is not intended for religious purposes where sighting of the
lunar crescent at the beginning of Hijri month is still preferred.
## Installation
To install using `pip`, run:
```shell
pip install hijridate
```
To install using `conda`, run:
```shell
conda install -c conda-forge hijridate
```
## Basic Usage
```python
from hijridate import Hijri, Gregorian
# Convert a Hijri date to Gregorian
g = Hijri(1403, 2, 17).to_gregorian()
# Convert a Gregorian date to Hijri
h = Gregorian(1982, 12, 2).to_hijri()
```
## Documentation
Please see <https://hijridate.readthedocs.io> for full documentation of this
package, including background, benchmarking, usage examples and API reference.
## License
This project is licensed under the terms of the MIT license.
## Acknowledgements
- [R.H. van Gent](http://www.staff.science.uu.nl/~gent0113) — inspiration,
scientific guidance and resources.
- [@AZalshehri7](https://github.com/AZalshehri7) — support in dates review
and conversion accuracy verification.
Raw data
{
"_id": null,
"home_page": "https://github.com/dralshehri/hijridate",
"name": "hijridate",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "hijri,gregorian,date,converter,ummalqura,saudi,calendar",
"author": "Mohammed Alshehri",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/3e/4f/6c16f79e400a2ffa331a779a0c0c5da00378179f2dbbe337657faec5962c/hijridate-2.4.1.tar.gz",
"platform": null,
"description": "# HijriDate\n\n> formerly `hijri-converter`\n\nA Python package to convert accurately between Hijri and Gregorian dates using\nthe Umm al-Qura calendar.\n\n## Features\n\n- Accurate and verified date conversion.\n- Optimized code performance compared to similar packages.\n- Intuitive, clean, and easy-to-use interface.\n- Most of the methods and formats are similar to those of standard library.\n- Multilingual representation of weekday names, months, and calendar era\n notations.\n- Easily extendable to support other natural languages.\n- Rich comparison between dates.\n- Validation of input dates.\n- Works on Python 3.8+ with zero dependencies.\n- Thoroughly tested with 100% test coverage.\n\n## Limitations\n\n- The date range supported by converter is limited to the period from the\n beginning of 1343 AH (1 August 1924 CE) to the end of 1500 AH (16 November\n 2077 CE).\n- The conversion is not intended for religious purposes where sighting of the\n lunar crescent at the beginning of Hijri month is still preferred.\n\n## Installation\n\nTo install using `pip`, run:\n\n```shell\npip install hijridate\n```\n\nTo install using `conda`, run:\n\n```shell\nconda install -c conda-forge hijridate\n```\n\n## Basic Usage\n\n```python\nfrom hijridate import Hijri, Gregorian\n\n# Convert a Hijri date to Gregorian\ng = Hijri(1403, 2, 17).to_gregorian()\n\n# Convert a Gregorian date to Hijri\nh = Gregorian(1982, 12, 2).to_hijri()\n```\n\n## Documentation\n\nPlease see <https://hijridate.readthedocs.io> for full documentation of this\npackage, including background, benchmarking, usage examples and API reference.\n\n## License\n\nThis project is licensed under the terms of the MIT license.\n\n## Acknowledgements\n\n- [R.H. van Gent](http://www.staff.science.uu.nl/~gent0113) — inspiration,\n scientific guidance and resources.\n- [@AZalshehri7](https://github.com/AZalshehri7) — support in dates review\n and conversion accuracy verification.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Accurate Hijri-Gregorian dates converter based on the Umm al-Qura calendar",
"version": "2.4.1",
"project_urls": {
"Documentation": "https://hijridate.readthedocs.io",
"Homepage": "https://github.com/dralshehri/hijridate",
"Source Code": "https://github.com/dralshehri/hijridate"
},
"split_keywords": [
"hijri",
"gregorian",
"date",
"converter",
"ummalqura",
"saudi",
"calendar"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9dfe5ec40f94f709b69284cb5d91dbf7bc9c62e512fd65420178b4faeafa9975",
"md5": "9cafc0350e51a5f8f62b052aee2063b5",
"sha256": "599fcfca64a56936b50c5a92104a4465c4f1de713b09e55e42689d6db2634426"
},
"downloads": -1,
"filename": "hijridate-2.4.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "9cafc0350e51a5f8f62b052aee2063b5",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 13911,
"upload_time": "2023-12-09T05:33:36",
"upload_time_iso_8601": "2023-12-09T05:33:36.337904Z",
"url": "https://files.pythonhosted.org/packages/9d/fe/5ec40f94f709b69284cb5d91dbf7bc9c62e512fd65420178b4faeafa9975/hijridate-2.4.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3e4f6c16f79e400a2ffa331a779a0c0c5da00378179f2dbbe337657faec5962c",
"md5": "b33cfec05bda7ab645123191feaaff02",
"sha256": "19b81ba7341cdc11011ff88401b437c0bd1188473921d38fe01b78f8c09735ad"
},
"downloads": -1,
"filename": "hijridate-2.4.1.tar.gz",
"has_sig": false,
"md5_digest": "b33cfec05bda7ab645123191feaaff02",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 34791,
"upload_time": "2023-12-09T05:33:38",
"upload_time_iso_8601": "2023-12-09T05:33:38.134088Z",
"url": "https://files.pythonhosted.org/packages/3e/4f/6c16f79e400a2ffa331a779a0c0c5da00378179f2dbbe337657faec5962c/hijridate-2.4.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-09 05:33:38",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "dralshehri",
"github_project": "hijridate",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "hijridate"
}