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.
Files changed (152) hide show
  1. holidays/__init__.py +1 -1
  2. holidays/calendars/thai.py +67 -16
  3. holidays/constants.py +1 -0
  4. holidays/countries/__init__.py +2 -0
  5. holidays/countries/australia.py +180 -144
  6. holidays/countries/austria.py +10 -10
  7. holidays/countries/bahrain.py +4 -4
  8. holidays/countries/bosnia_and_herzegovina.py +8 -12
  9. holidays/countries/brunei.py +8 -2
  10. holidays/countries/cambodia.py +23 -6
  11. holidays/countries/canada.py +6 -6
  12. holidays/countries/croatia.py +1 -1
  13. holidays/countries/cyprus.py +1 -1
  14. holidays/countries/djibouti.py +1 -1
  15. holidays/countries/dominica.py +130 -0
  16. holidays/countries/dominican_republic.py +7 -12
  17. holidays/countries/germany.py +30 -12
  18. holidays/countries/haiti.py +134 -0
  19. holidays/countries/hongkong.py +1 -1
  20. holidays/countries/hungary.py +6 -0
  21. holidays/countries/indonesia.py +1 -1
  22. holidays/countries/iran.py +1 -1
  23. holidays/countries/ireland.py +6 -6
  24. holidays/countries/isle_of_man.py +1 -0
  25. holidays/countries/italy.py +113 -5
  26. holidays/countries/jersey.py +20 -17
  27. holidays/countries/jordan.py +1 -1
  28. holidays/countries/kuwait.py +1 -1
  29. holidays/countries/laos.py +27 -65
  30. holidays/countries/liechtenstein.py +1 -1
  31. holidays/countries/luxembourg.py +1 -1
  32. holidays/countries/malaysia.py +16 -38
  33. holidays/countries/malta.py +3 -3
  34. holidays/countries/new_zealand.py +68 -43
  35. holidays/countries/philippines.py +215 -26
  36. holidays/countries/portugal.py +7 -7
  37. holidays/countries/russia.py +382 -3
  38. holidays/countries/slovakia.py +1 -1
  39. holidays/countries/south_korea.py +2 -0
  40. holidays/countries/spain.py +8 -8
  41. holidays/countries/switzerland.py +3 -3
  42. holidays/countries/tanzania.py +1 -1
  43. holidays/countries/thailand.py +2 -2
  44. holidays/countries/timor_leste.py +2 -2
  45. holidays/countries/united_kingdom.py +12 -22
  46. holidays/countries/united_states.py +9 -2
  47. holidays/groups/christian.py +19 -0
  48. holidays/holiday_base.py +0 -3
  49. holidays/locale/ar/LC_MESSAGES/BH.po +4 -4
  50. holidays/locale/ar/LC_MESSAGES/CA.mo +0 -0
  51. holidays/locale/ar/LC_MESSAGES/CA.po +6 -6
  52. holidays/locale/ar/LC_MESSAGES/DJ.po +1 -1
  53. holidays/locale/ar/LC_MESSAGES/JO.po +1 -1
  54. holidays/locale/ar/LC_MESSAGES/KW.po +1 -1
  55. holidays/locale/de/LC_MESSAGES/AT.po +6 -6
  56. holidays/locale/de/LC_MESSAGES/CH.po +3 -3
  57. holidays/locale/de/LC_MESSAGES/LI.po +1 -1
  58. holidays/locale/de/LC_MESSAGES/LU.po +1 -1
  59. holidays/locale/en_AU/LC_MESSAGES/AU.mo +0 -0
  60. holidays/locale/en_AU/LC_MESSAGES/AU.po +177 -0
  61. holidays/locale/en_CA/LC_MESSAGES/CA.po +6 -6
  62. holidays/locale/en_US/LC_MESSAGES/AT.mo +0 -0
  63. holidays/locale/en_US/LC_MESSAGES/AT.po +14 -14
  64. holidays/locale/en_US/LC_MESSAGES/AU.mo +0 -0
  65. holidays/locale/en_US/LC_MESSAGES/AU.po +177 -0
  66. holidays/locale/en_US/LC_MESSAGES/BG.mo +0 -0
  67. holidays/locale/en_US/LC_MESSAGES/BG.po +3 -3
  68. holidays/locale/en_US/LC_MESSAGES/BH.po +4 -4
  69. holidays/locale/en_US/LC_MESSAGES/BN.mo +0 -0
  70. holidays/locale/en_US/LC_MESSAGES/BN.po +8 -8
  71. holidays/locale/en_US/LC_MESSAGES/CA.mo +0 -0
  72. holidays/locale/en_US/LC_MESSAGES/CA.po +11 -11
  73. holidays/locale/en_US/LC_MESSAGES/CH.mo +0 -0
  74. holidays/locale/en_US/LC_MESSAGES/CH.po +9 -8
  75. holidays/locale/en_US/LC_MESSAGES/DJ.mo +0 -0
  76. holidays/locale/en_US/LC_MESSAGES/DJ.po +5 -5
  77. holidays/locale/en_US/LC_MESSAGES/ES.mo +0 -0
  78. holidays/locale/en_US/LC_MESSAGES/ES.po +16 -16
  79. holidays/locale/en_US/LC_MESSAGES/HR.mo +0 -0
  80. holidays/locale/en_US/LC_MESSAGES/HR.po +4 -4
  81. holidays/locale/en_US/LC_MESSAGES/HT.mo +0 -0
  82. holidays/locale/en_US/LC_MESSAGES/HT.po +127 -0
  83. holidays/locale/en_US/LC_MESSAGES/ID.mo +0 -0
  84. holidays/locale/en_US/LC_MESSAGES/ID.po +5 -5
  85. holidays/locale/en_US/LC_MESSAGES/IR.mo +0 -0
  86. holidays/locale/en_US/LC_MESSAGES/IR.po +5 -5
  87. holidays/locale/en_US/LC_MESSAGES/JO.mo +0 -0
  88. holidays/locale/en_US/LC_MESSAGES/JO.po +6 -5
  89. holidays/locale/en_US/LC_MESSAGES/KW.mo +0 -0
  90. holidays/locale/en_US/LC_MESSAGES/KW.po +6 -5
  91. holidays/locale/en_US/LC_MESSAGES/LI.mo +0 -0
  92. holidays/locale/en_US/LC_MESSAGES/LI.po +4 -4
  93. holidays/locale/en_US/LC_MESSAGES/LU.mo +0 -0
  94. holidays/locale/en_US/LC_MESSAGES/LU.po +4 -4
  95. holidays/locale/en_US/LC_MESSAGES/MT.mo +0 -0
  96. holidays/locale/en_US/LC_MESSAGES/MT.po +8 -8
  97. holidays/locale/en_US/LC_MESSAGES/PT.mo +0 -0
  98. holidays/locale/en_US/LC_MESSAGES/PT.po +16 -16
  99. holidays/locale/en_US/LC_MESSAGES/SK.mo +0 -0
  100. holidays/locale/en_US/LC_MESSAGES/SK.po +4 -4
  101. holidays/locale/en_US/LC_MESSAGES/TL.mo +0 -0
  102. holidays/locale/en_US/LC_MESSAGES/TL.po +8 -8
  103. holidays/locale/en_US/LC_MESSAGES/TZ.mo +0 -0
  104. holidays/locale/en_US/LC_MESSAGES/TZ.po +6 -6
  105. holidays/locale/es/LC_MESSAGES/ES.po +7 -7
  106. holidays/locale/es/LC_MESSAGES/HT.mo +0 -0
  107. holidays/locale/es/LC_MESSAGES/HT.po +127 -0
  108. holidays/locale/fa/LC_MESSAGES/IR.po +1 -1
  109. holidays/locale/fr/LC_MESSAGES/CA.mo +0 -0
  110. holidays/locale/fr/LC_MESSAGES/CA.po +6 -6
  111. holidays/locale/fr/LC_MESSAGES/CH.po +3 -3
  112. holidays/locale/fr/LC_MESSAGES/DJ.po +1 -1
  113. holidays/locale/fr/LC_MESSAGES/LU.mo +0 -0
  114. holidays/locale/fr/LC_MESSAGES/LU.po +2 -2
  115. holidays/locale/fr_HT/LC_MESSAGES/HT.mo +0 -0
  116. holidays/locale/fr_HT/LC_MESSAGES/HT.po +127 -0
  117. holidays/locale/hr/LC_MESSAGES/HR.po +1 -1
  118. holidays/locale/ht/LC_MESSAGES/HT.mo +0 -0
  119. holidays/locale/ht/LC_MESSAGES/HT.po +127 -0
  120. holidays/locale/id/LC_MESSAGES/ID.po +1 -1
  121. holidays/locale/it/LC_MESSAGES/CH.po +3 -3
  122. holidays/locale/lb/LC_MESSAGES/LU.po +1 -1
  123. holidays/locale/ms/LC_MESSAGES/BN.po +2 -2
  124. holidays/locale/mt/LC_MESSAGES/MT.po +3 -3
  125. holidays/locale/pt_PT/LC_MESSAGES/PT.po +7 -7
  126. holidays/locale/pt_TL/LC_MESSAGES/TL.po +2 -2
  127. holidays/locale/sk/LC_MESSAGES/SK.po +1 -1
  128. holidays/locale/sw/LC_MESSAGES/TZ.po +1 -1
  129. holidays/locale/tet/LC_MESSAGES/TL.po +2 -2
  130. holidays/locale/th/LC_MESSAGES/AU.mo +0 -0
  131. holidays/locale/th/LC_MESSAGES/AU.po +177 -0
  132. holidays/locale/th/LC_MESSAGES/BN.po +2 -2
  133. holidays/locale/th/LC_MESSAGES/CA.mo +0 -0
  134. holidays/locale/th/LC_MESSAGES/CA.po +6 -6
  135. holidays/locale/th/LC_MESSAGES/DE.mo +0 -0
  136. holidays/locale/th/LC_MESSAGES/DE.po +113 -0
  137. holidays/locale/uk/LC_MESSAGES/AT.po +6 -6
  138. holidays/locale/uk/LC_MESSAGES/CH.po +3 -3
  139. holidays/locale/uk/LC_MESSAGES/ES.po +7 -7
  140. holidays/locale/uk/LC_MESSAGES/HR.po +1 -1
  141. holidays/locale/uk/LC_MESSAGES/ID.po +1 -1
  142. holidays/locale/uk/LC_MESSAGES/LI.po +1 -1
  143. holidays/locale/uk/LC_MESSAGES/LU.po +1 -1
  144. holidays/locale/uk/LC_MESSAGES/PT.po +7 -7
  145. holidays/locale/uk/LC_MESSAGES/SK.po +1 -1
  146. holidays/registry.py +2 -0
  147. {holidays-0.55.dist-info → holidays-0.57.dist-info}/AUTHORS +1 -0
  148. {holidays-0.55.dist-info → holidays-0.57.dist-info}/METADATA +21 -11
  149. {holidays-0.55.dist-info → holidays-0.57.dist-info}/RECORD +152 -134
  150. {holidays-0.55.dist-info → holidays-0.57.dist-info}/WHEEL +1 -1
  151. {holidays-0.55.dist-info → holidays-0.57.dist-info}/LICENSE +0 -0
  152. {holidays-0.55.dist-info → holidays-0.57.dist-info}/top_level.txt +0 -0
holidays/__init__.py CHANGED
@@ -23,7 +23,7 @@ from holidays.holiday_base import *
23
23
  from holidays.registry import EntityLoader
24
24
  from holidays.utils import *
25
25
 
26
- __version__ = "0.55"
26
+ __version__ = "0.57"
27
27
 
28
28
 
29
29
  EntityLoader.load("countries", globals())
@@ -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 2057 (B.E. 2600) as we only have Thai year-type data for
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.utils import _ThaiLunisolar
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-2057 C.E.
104
- # Copied off from 1757-2057 (B.E. 2300-2600) Thai Lunar Calendar
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-2057 C.E.:
131
- # Copied off from 1757-2057 (B.E. 2300-2600) Thai Lunar Calendar
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. 2600; We'll thus only populate
182
- # the data for 1941-2057 (B.E. 2484-2600).
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 = 2057
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-2057: B.E 2484-2600), this will returns None instead.
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
@@ -48,6 +48,7 @@ SCHOOL = "school"
48
48
  UNOFFICIAL = "unofficial"
49
49
  WORKDAY = "workday"
50
50
 
51
+ CATHOLIC = "catholic"
51
52
  CHINESE = "chinese"
52
53
  CHRISTIAN = "christian"
53
54
  HEBREW = "hebrew"
@@ -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