-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKG-INFO
102 lines (79 loc) · 2.68 KB
/
PKG-INFO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
Metadata-Version: 2.1
Name: hijri-converter
Version: 2.3.1
Summary: Accurate Hijri-Gregorian dates converter based on the Umm al-Qura calendar
Home-page: https://hijri-converter.readthedocs.io
Author: Mohammed Alshehri
Author-email:
License: MIT
Keywords: hijri,gregorian,date,converter,ummalqura,saudi,calendar
Classifier: Development Status :: 7 - Inactive
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
# hijri-converter
A Python package to convert accurately between Hijri and Gregorian dates using
the Umm al-Qura calendar.
> ⚠️ **Deprecation Notice**
>
> This package has been **deprecated** and will not receive future updates.
> Please use the [hijridate](https://pypi.org/project/hijridate/) package
> instead.
>
> For migration to `hijridate`, install the package:
>
> ```
> pip install hijridate~=2.3.0
> ```
>
> Then change the import statement as:
>
> ```py
> from hijridate import Hijri, Gregorian
> ```
## 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.7+ 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 hijri-converter
```
To install using `conda`, run:
```shell
conda install -c conda-forge hijri-converter
```
## Basic Usage
```python
from hijri_converter 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://hijri-converter.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.