nepdate-core 0.1.0b1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nepdate/__init__.py +42 -0
- nepdate/_calendar.py +1899 -0
- nepdate/_date.py +555 -0
- nepdate/_diff.py +67 -0
- nepdate/_errors.py +38 -0
- nepdate/_fiscal.py +124 -0
- nepdate/_format.py +146 -0
- nepdate/_lenient.py +250 -0
- nepdate/_names.py +190 -0
- nepdate/_parse.py +135 -0
- nepdate/_pattern.py +134 -0
- nepdate/_range.py +99 -0
- nepdate/py.typed +0 -0
- nepdate_core-0.1.0b1.dist-info/METADATA +150 -0
- nepdate_core-0.1.0b1.dist-info/RECORD +18 -0
- nepdate_core-0.1.0b1.dist-info/WHEEL +4 -0
- nepdate_core-0.1.0b1.dist-info/licenses/LICENSE +21 -0
- nepdate_core-0.1.0b1.dist-info/licenses/shared/data/NOTICE +25 -0
nepdate/__init__.py
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""Bikram Sambat (Nepali calendar) for Python.
|
|
2
|
+
|
|
3
|
+
The public surface is ``nepdate.__all__``, documented in ``docs/API.md``. The core package
|
|
4
|
+
is dependency-free (except ``tzdata`` on Windows, for ``today()``) and contains none of the
|
|
5
|
+
tithi, holiday or event data; that lives in the separate ``nepdate-patro`` distribution
|
|
6
|
+
(``nepdate_patro``).
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from ._date import MAX, MIN, NepaliDate
|
|
10
|
+
from ._diff import DateDiff
|
|
11
|
+
from ._errors import ErrorKind, NepDateError
|
|
12
|
+
from ._fiscal import FiscalYear
|
|
13
|
+
from ._names import (
|
|
14
|
+
DateOrder,
|
|
15
|
+
Lang,
|
|
16
|
+
Month,
|
|
17
|
+
Overflow,
|
|
18
|
+
Quarter,
|
|
19
|
+
Separator,
|
|
20
|
+
Weekday,
|
|
21
|
+
to_nepali_digits,
|
|
22
|
+
)
|
|
23
|
+
from ._range import DateRange
|
|
24
|
+
|
|
25
|
+
__all__ = [
|
|
26
|
+
"MAX",
|
|
27
|
+
"MIN",
|
|
28
|
+
"DateDiff",
|
|
29
|
+
"DateOrder",
|
|
30
|
+
"DateRange",
|
|
31
|
+
"ErrorKind",
|
|
32
|
+
"FiscalYear",
|
|
33
|
+
"Lang",
|
|
34
|
+
"Month",
|
|
35
|
+
"NepDateError",
|
|
36
|
+
"NepaliDate",
|
|
37
|
+
"Overflow",
|
|
38
|
+
"Quarter",
|
|
39
|
+
"Separator",
|
|
40
|
+
"Weekday",
|
|
41
|
+
"to_nepali_digits",
|
|
42
|
+
]
|