holidays 0.55__py3-none-any.whl → 0.57__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.
- holidays/__init__.py +1 -1
- holidays/calendars/thai.py +67 -16
- holidays/constants.py +1 -0
- holidays/countries/__init__.py +2 -0
- holidays/countries/australia.py +180 -144
- holidays/countries/austria.py +10 -10
- holidays/countries/bahrain.py +4 -4
- holidays/countries/bosnia_and_herzegovina.py +8 -12
- holidays/countries/brunei.py +8 -2
- holidays/countries/cambodia.py +23 -6
- holidays/countries/canada.py +6 -6
- holidays/countries/croatia.py +1 -1
- holidays/countries/cyprus.py +1 -1
- holidays/countries/djibouti.py +1 -1
- holidays/countries/dominica.py +130 -0
- holidays/countries/dominican_republic.py +7 -12
- holidays/countries/germany.py +30 -12
- holidays/countries/haiti.py +134 -0
- holidays/countries/hongkong.py +1 -1
- holidays/countries/hungary.py +6 -0
- holidays/countries/indonesia.py +1 -1
- holidays/countries/iran.py +1 -1
- holidays/countries/ireland.py +6 -6
- holidays/countries/isle_of_man.py +1 -0
- holidays/countries/italy.py +113 -5
- holidays/countries/jersey.py +20 -17
- holidays/countries/jordan.py +1 -1
- holidays/countries/kuwait.py +1 -1
- holidays/countries/laos.py +27 -65
- holidays/countries/liechtenstein.py +1 -1
- holidays/countries/luxembourg.py +1 -1
- holidays/countries/malaysia.py +16 -38
- holidays/countries/malta.py +3 -3
- holidays/countries/new_zealand.py +68 -43
- holidays/countries/philippines.py +215 -26
- holidays/countries/portugal.py +7 -7
- holidays/countries/russia.py +382 -3
- holidays/countries/slovakia.py +1 -1
- holidays/countries/south_korea.py +2 -0
- holidays/countries/spain.py +8 -8
- holidays/countries/switzerland.py +3 -3
- holidays/countries/tanzania.py +1 -1
- holidays/countries/thailand.py +2 -2
- holidays/countries/timor_leste.py +2 -2
- holidays/countries/united_kingdom.py +12 -22
- holidays/countries/united_states.py +9 -2
- holidays/groups/christian.py +19 -0
- holidays/holiday_base.py +0 -3
- holidays/locale/ar/LC_MESSAGES/BH.po +4 -4
- holidays/locale/ar/LC_MESSAGES/CA.mo +0 -0
- holidays/locale/ar/LC_MESSAGES/CA.po +6 -6
- holidays/locale/ar/LC_MESSAGES/DJ.po +1 -1
- holidays/locale/ar/LC_MESSAGES/JO.po +1 -1
- holidays/locale/ar/LC_MESSAGES/KW.po +1 -1
- holidays/locale/de/LC_MESSAGES/AT.po +6 -6
- holidays/locale/de/LC_MESSAGES/CH.po +3 -3
- holidays/locale/de/LC_MESSAGES/LI.po +1 -1
- holidays/locale/de/LC_MESSAGES/LU.po +1 -1
- holidays/locale/en_AU/LC_MESSAGES/AU.mo +0 -0
- holidays/locale/en_AU/LC_MESSAGES/AU.po +177 -0
- holidays/locale/en_CA/LC_MESSAGES/CA.po +6 -6
- holidays/locale/en_US/LC_MESSAGES/AT.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/AT.po +14 -14
- holidays/locale/en_US/LC_MESSAGES/AU.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/AU.po +177 -0
- holidays/locale/en_US/LC_MESSAGES/BG.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/BG.po +3 -3
- holidays/locale/en_US/LC_MESSAGES/BH.po +4 -4
- holidays/locale/en_US/LC_MESSAGES/BN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/BN.po +8 -8
- holidays/locale/en_US/LC_MESSAGES/CA.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/CA.po +11 -11
- holidays/locale/en_US/LC_MESSAGES/CH.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/CH.po +9 -8
- holidays/locale/en_US/LC_MESSAGES/DJ.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/DJ.po +5 -5
- holidays/locale/en_US/LC_MESSAGES/ES.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/ES.po +16 -16
- holidays/locale/en_US/LC_MESSAGES/HR.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/HR.po +4 -4
- holidays/locale/en_US/LC_MESSAGES/HT.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/HT.po +127 -0
- holidays/locale/en_US/LC_MESSAGES/ID.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/ID.po +5 -5
- holidays/locale/en_US/LC_MESSAGES/IR.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/IR.po +5 -5
- holidays/locale/en_US/LC_MESSAGES/JO.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/JO.po +6 -5
- holidays/locale/en_US/LC_MESSAGES/KW.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/KW.po +6 -5
- holidays/locale/en_US/LC_MESSAGES/LI.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/LI.po +4 -4
- holidays/locale/en_US/LC_MESSAGES/LU.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/LU.po +4 -4
- holidays/locale/en_US/LC_MESSAGES/MT.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/MT.po +8 -8
- holidays/locale/en_US/LC_MESSAGES/PT.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/PT.po +16 -16
- holidays/locale/en_US/LC_MESSAGES/SK.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/SK.po +4 -4
- holidays/locale/en_US/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TL.po +8 -8
- holidays/locale/en_US/LC_MESSAGES/TZ.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TZ.po +6 -6
- holidays/locale/es/LC_MESSAGES/ES.po +7 -7
- holidays/locale/es/LC_MESSAGES/HT.mo +0 -0
- holidays/locale/es/LC_MESSAGES/HT.po +127 -0
- holidays/locale/fa/LC_MESSAGES/IR.po +1 -1
- holidays/locale/fr/LC_MESSAGES/CA.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/CA.po +6 -6
- holidays/locale/fr/LC_MESSAGES/CH.po +3 -3
- holidays/locale/fr/LC_MESSAGES/DJ.po +1 -1
- holidays/locale/fr/LC_MESSAGES/LU.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/LU.po +2 -2
- holidays/locale/fr_HT/LC_MESSAGES/HT.mo +0 -0
- holidays/locale/fr_HT/LC_MESSAGES/HT.po +127 -0
- holidays/locale/hr/LC_MESSAGES/HR.po +1 -1
- holidays/locale/ht/LC_MESSAGES/HT.mo +0 -0
- holidays/locale/ht/LC_MESSAGES/HT.po +127 -0
- holidays/locale/id/LC_MESSAGES/ID.po +1 -1
- holidays/locale/it/LC_MESSAGES/CH.po +3 -3
- holidays/locale/lb/LC_MESSAGES/LU.po +1 -1
- holidays/locale/ms/LC_MESSAGES/BN.po +2 -2
- holidays/locale/mt/LC_MESSAGES/MT.po +3 -3
- holidays/locale/pt_PT/LC_MESSAGES/PT.po +7 -7
- holidays/locale/pt_TL/LC_MESSAGES/TL.po +2 -2
- holidays/locale/sk/LC_MESSAGES/SK.po +1 -1
- holidays/locale/sw/LC_MESSAGES/TZ.po +1 -1
- holidays/locale/tet/LC_MESSAGES/TL.po +2 -2
- holidays/locale/th/LC_MESSAGES/AU.mo +0 -0
- holidays/locale/th/LC_MESSAGES/AU.po +177 -0
- holidays/locale/th/LC_MESSAGES/BN.po +2 -2
- holidays/locale/th/LC_MESSAGES/CA.mo +0 -0
- holidays/locale/th/LC_MESSAGES/CA.po +6 -6
- holidays/locale/th/LC_MESSAGES/DE.mo +0 -0
- holidays/locale/th/LC_MESSAGES/DE.po +113 -0
- holidays/locale/uk/LC_MESSAGES/AT.po +6 -6
- holidays/locale/uk/LC_MESSAGES/CH.po +3 -3
- holidays/locale/uk/LC_MESSAGES/ES.po +7 -7
- holidays/locale/uk/LC_MESSAGES/HR.po +1 -1
- holidays/locale/uk/LC_MESSAGES/ID.po +1 -1
- holidays/locale/uk/LC_MESSAGES/LI.po +1 -1
- holidays/locale/uk/LC_MESSAGES/LU.po +1 -1
- holidays/locale/uk/LC_MESSAGES/PT.po +7 -7
- holidays/locale/uk/LC_MESSAGES/SK.po +1 -1
- holidays/registry.py +2 -0
- {holidays-0.55.dist-info → holidays-0.57.dist-info}/AUTHORS +1 -0
- {holidays-0.55.dist-info → holidays-0.57.dist-info}/METADATA +21 -11
- {holidays-0.55.dist-info → holidays-0.57.dist-info}/RECORD +152 -134
- {holidays-0.55.dist-info → holidays-0.57.dist-info}/WHEEL +1 -1
- {holidays-0.55.dist-info → holidays-0.57.dist-info}/LICENSE +0 -0
- {holidays-0.55.dist-info → holidays-0.57.dist-info}/top_level.txt +0 -0
holidays/__init__.py
CHANGED
holidays/calendars/thai.py
CHANGED
|
@@ -23,7 +23,7 @@ THAI_CALENDAR = "THAI_CALENDAR"
|
|
|
23
23
|
class _ThaiLunisolar:
|
|
24
24
|
"""
|
|
25
25
|
** Thai Lunar Calendar Holidays only work from 1941 (B.E. 2484) onwards
|
|
26
|
-
until
|
|
26
|
+
until 2157 (B.E. 2700) as we only have Thai year-type data for
|
|
27
27
|
cross-checking until then.
|
|
28
28
|
|
|
29
29
|
So here are the basics of the Thai Lunar Calendar
|
|
@@ -94,14 +94,14 @@ class _ThaiLunisolar:
|
|
|
94
94
|
|
|
95
95
|
Usage example:
|
|
96
96
|
|
|
97
|
-
>>> from holidays.
|
|
97
|
+
>>> from holidays.calendars.thai import _ThaiLunisolar
|
|
98
98
|
>>> thls = _ThaiLunisolar()
|
|
99
99
|
>>> print(thls.visakha_bucha_date(2010))
|
|
100
100
|
2010-05-28
|
|
101
101
|
"""
|
|
102
102
|
|
|
103
|
-
# Athikawan (Extra-Day Year) list goes from 1941-
|
|
104
|
-
# Copied off from 1757-
|
|
103
|
+
# Athikawan (Extra-Day Year) list goes from 1941-2157 C.E.
|
|
104
|
+
# Copied off from 1757-2157 (B.E. 2300-2700) Thai Lunar Calendar
|
|
105
105
|
ATHIKAWAN_YEARS_GREGORIAN = {
|
|
106
106
|
1945,
|
|
107
107
|
1949,
|
|
@@ -125,10 +125,30 @@ class _ThaiLunisolar:
|
|
|
125
125
|
2043,
|
|
126
126
|
2046,
|
|
127
127
|
2052,
|
|
128
|
+
2055,
|
|
129
|
+
2058,
|
|
130
|
+
2067,
|
|
131
|
+
2071,
|
|
132
|
+
2076,
|
|
133
|
+
2083,
|
|
134
|
+
2086,
|
|
135
|
+
2092,
|
|
136
|
+
2097,
|
|
137
|
+
2103,
|
|
138
|
+
2109,
|
|
139
|
+
2111,
|
|
140
|
+
2117,
|
|
141
|
+
2121,
|
|
142
|
+
2126,
|
|
143
|
+
2133,
|
|
144
|
+
2136,
|
|
145
|
+
2142,
|
|
146
|
+
2147,
|
|
147
|
+
2153,
|
|
128
148
|
}
|
|
129
149
|
|
|
130
|
-
# Athikamat (Extra-Month Year) list goes from 1941-
|
|
131
|
-
# Copied off from 1757-
|
|
150
|
+
# Athikamat (Extra-Month Year) list goes from 1941-2157 C.E.:
|
|
151
|
+
# Copied off from 1757-2157 (B.E. 2300-2700) Thai Lunar Calendar
|
|
132
152
|
# Approx formula as follows: (common_era-78)-0.45222)%2.7118886 < 1
|
|
133
153
|
ATHIKAMAT_YEARS_GREGORIAN = {
|
|
134
154
|
1942,
|
|
@@ -174,16 +194,53 @@ class _ThaiLunisolar:
|
|
|
174
194
|
2050,
|
|
175
195
|
2053,
|
|
176
196
|
2056,
|
|
197
|
+
2059,
|
|
198
|
+
2062,
|
|
199
|
+
2064,
|
|
200
|
+
2066,
|
|
201
|
+
2069,
|
|
202
|
+
2072,
|
|
203
|
+
2074,
|
|
204
|
+
2077,
|
|
205
|
+
2080,
|
|
206
|
+
2082,
|
|
207
|
+
2085,
|
|
208
|
+
2088,
|
|
209
|
+
2091,
|
|
210
|
+
2094,
|
|
211
|
+
2096,
|
|
212
|
+
2099,
|
|
213
|
+
2101,
|
|
214
|
+
2104,
|
|
215
|
+
2107,
|
|
216
|
+
2112,
|
|
217
|
+
2114,
|
|
218
|
+
2116,
|
|
219
|
+
2119,
|
|
220
|
+
2122,
|
|
221
|
+
2124,
|
|
222
|
+
2127,
|
|
223
|
+
2130,
|
|
224
|
+
2132,
|
|
225
|
+
2135,
|
|
226
|
+
2138,
|
|
227
|
+
2141,
|
|
228
|
+
2144,
|
|
229
|
+
2146,
|
|
230
|
+
2149,
|
|
231
|
+
2151,
|
|
232
|
+
2154,
|
|
233
|
+
2157,
|
|
177
234
|
}
|
|
178
235
|
|
|
179
236
|
# While Buddhist Holy Days have been observed since the 1900s
|
|
180
237
|
# Due to the calendar changes in 1941 (B.E. 2484) and that
|
|
181
|
-
# our array only goes up to B.E.
|
|
182
|
-
# the data for 1941-
|
|
238
|
+
# our array only goes up to B.E. 2700; We'll thus only populate
|
|
239
|
+
# the data for 1941-2157 (B.E. 2484-2700).
|
|
183
240
|
# Sources: หนังสือเวียนกรมการปกครอง กระทรวงมหาดไทย มท 0310.1/ว4 5 ก.พ. 2539
|
|
184
241
|
START_DATE = date(1940, 11, 30)
|
|
185
242
|
START_YEAR = 1941
|
|
186
|
-
END_YEAR =
|
|
243
|
+
END_YEAR = 2157
|
|
187
244
|
|
|
188
245
|
def __init__(self, calendar=THAI_CALENDAR) -> None:
|
|
189
246
|
self.__verify_calendar(calendar)
|
|
@@ -213,7 +270,7 @@ class _ThaiLunisolar:
|
|
|
213
270
|
Calculate the start date of that particular Thai Lunar Calendar Year.
|
|
214
271
|
This usually falls in November or December of the previous Gregorian
|
|
215
272
|
year in question. Should the year be outside of working scope
|
|
216
|
-
(1941-
|
|
273
|
+
(1941-2157: B.E 2484-2700), this will returns None instead.
|
|
217
274
|
|
|
218
275
|
:param year:
|
|
219
276
|
The Gregorian year.
|
|
@@ -418,9 +475,6 @@ class _ThaiLunisolar:
|
|
|
418
475
|
:param year:
|
|
419
476
|
The Gregorian year.
|
|
420
477
|
|
|
421
|
-
:param calendar:
|
|
422
|
-
Calendar type, this defaults to THAI_CALENDAR.
|
|
423
|
-
|
|
424
478
|
:return:
|
|
425
479
|
Estimated Gregorian date of Asarnha Bucha.
|
|
426
480
|
"""
|
|
@@ -457,9 +511,6 @@ class _ThaiLunisolar:
|
|
|
457
511
|
:param year:
|
|
458
512
|
The Gregorian year.
|
|
459
513
|
|
|
460
|
-
:param calendar:
|
|
461
|
-
Calendar type, this defaults to THAI_CALENDAR.
|
|
462
|
-
|
|
463
514
|
:return:
|
|
464
515
|
Estimated Gregorian date of Khao Phansa.
|
|
465
516
|
"""
|
holidays/constants.py
CHANGED
holidays/countries/__init__.py
CHANGED
|
@@ -53,6 +53,7 @@ from .cyprus import Cyprus, CY, CYP
|
|
|
53
53
|
from .czechia import Czechia, CZ, CZE
|
|
54
54
|
from .denmark import Denmark, DK, DNK
|
|
55
55
|
from .djibouti import Djibouti, DJ, DJI
|
|
56
|
+
from .dominica import Dominica, DM, DMA
|
|
56
57
|
from .dominican_republic import DominicanRepublic, DO, DOM
|
|
57
58
|
from .ecuador import Ecuador, EC, ECU
|
|
58
59
|
from .egypt import Egypt, EG, EGY
|
|
@@ -70,6 +71,7 @@ from .greece import Greece, GR, GRC
|
|
|
70
71
|
from .greenland import Greenland, GL, GRL
|
|
71
72
|
from .guam import Guam, GU, GUM, HolidaysGU
|
|
72
73
|
from .guatemala import Guatemala, GT, GUA
|
|
74
|
+
from .haiti import Haiti, HT, HTI
|
|
73
75
|
from .honduras import Honduras, HN, HND
|
|
74
76
|
from .hongkong import HongKong, HK, HKG
|
|
75
77
|
from .hungary import Hungary, HU, HUN
|