holidays 0.71__py3-none-any.whl → 0.73__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 (260) hide show
  1. holidays/__init__.py +1 -2
  2. holidays/calendars/__init__.py +1 -1
  3. holidays/calendars/balinese_saka.py +1 -1
  4. holidays/calendars/buddhist.py +5 -3
  5. holidays/calendars/chinese.py +101 -13
  6. holidays/calendars/custom.py +1 -1
  7. holidays/calendars/gregorian.py +1 -1
  8. holidays/calendars/hebrew.py +1 -1
  9. holidays/calendars/hindu.py +194 -6
  10. holidays/calendars/islamic.py +1 -1
  11. holidays/calendars/julian.py +1 -1
  12. holidays/calendars/julian_revised.py +1 -1
  13. holidays/calendars/persian.py +1 -1
  14. holidays/calendars/sinhala.py +1 -1
  15. holidays/calendars/thai.py +1 -1
  16. holidays/constants.py +1 -1
  17. holidays/countries/__init__.py +7 -1
  18. holidays/countries/afghanistan.py +1 -1
  19. holidays/countries/albania.py +2 -2
  20. holidays/countries/algeria.py +1 -1
  21. holidays/countries/american_samoa.py +2 -1
  22. holidays/countries/andorra.py +140 -47
  23. holidays/countries/angola.py +1 -1
  24. holidays/countries/antigua_and_barbuda.py +1 -1
  25. holidays/countries/argentina.py +15 -5
  26. holidays/countries/armenia.py +1 -1
  27. holidays/countries/aruba.py +1 -1
  28. holidays/countries/australia.py +16 -5
  29. holidays/countries/austria.py +3 -3
  30. holidays/countries/azerbaijan.py +1 -1
  31. holidays/countries/bahamas.py +1 -1
  32. holidays/countries/bahrain.py +1 -1
  33. holidays/countries/bangladesh.py +1 -1
  34. holidays/countries/barbados.py +1 -1
  35. holidays/countries/belarus.py +1 -1
  36. holidays/countries/belgium.py +1 -1
  37. holidays/countries/belize.py +1 -1
  38. holidays/countries/bolivia.py +23 -12
  39. holidays/countries/bosnia_and_herzegovina.py +5 -5
  40. holidays/countries/botswana.py +1 -1
  41. holidays/countries/brazil.py +3 -4
  42. holidays/countries/brunei.py +1 -1
  43. holidays/countries/bulgaria.py +1 -1
  44. holidays/countries/burkina_faso.py +1 -1
  45. holidays/countries/burundi.py +1 -1
  46. holidays/countries/cambodia.py +22 -22
  47. holidays/countries/cameroon.py +1 -1
  48. holidays/countries/canada.py +91 -57
  49. holidays/countries/chad.py +1 -1
  50. holidays/countries/chile.py +36 -18
  51. holidays/countries/china.py +1 -1
  52. holidays/countries/cocos_islands.py +259 -0
  53. holidays/countries/colombia.py +1 -1
  54. holidays/countries/congo.py +1 -1
  55. holidays/countries/costa_rica.py +1 -1
  56. holidays/countries/croatia.py +1 -1
  57. holidays/countries/cuba.py +1 -1
  58. holidays/countries/curacao.py +1 -1
  59. holidays/countries/cyprus.py +1 -1
  60. holidays/countries/czechia.py +1 -1
  61. holidays/countries/denmark.py +1 -1
  62. holidays/countries/djibouti.py +1 -1
  63. holidays/countries/dominica.py +1 -1
  64. holidays/countries/dominican_republic.py +1 -1
  65. holidays/countries/ecuador.py +1 -1
  66. holidays/countries/egypt.py +1 -1
  67. holidays/countries/el_salvador.py +18 -18
  68. holidays/countries/estonia.py +1 -1
  69. holidays/countries/eswatini.py +1 -1
  70. holidays/countries/ethiopia.py +43 -24
  71. holidays/countries/fiji.py +1 -1
  72. holidays/countries/finland.py +1 -1
  73. holidays/countries/france.py +3 -4
  74. holidays/countries/french_southern_territories.py +1 -1
  75. holidays/countries/gabon.py +1 -1
  76. holidays/countries/georgia.py +1 -1
  77. holidays/countries/germany.py +20 -21
  78. holidays/countries/ghana.py +1 -1
  79. holidays/countries/greece.py +1 -1
  80. holidays/countries/greenland.py +1 -1
  81. holidays/countries/grenada.py +143 -0
  82. holidays/countries/guam.py +2 -1
  83. holidays/countries/guatemala.py +1 -1
  84. holidays/countries/guernsey.py +1 -1
  85. holidays/countries/guinea.py +1 -1
  86. holidays/countries/haiti.py +1 -1
  87. holidays/countries/honduras.py +1 -1
  88. holidays/countries/hongkong.py +2 -2
  89. holidays/countries/hungary.py +1 -1
  90. holidays/countries/iceland.py +1 -1
  91. holidays/countries/india.py +17 -11
  92. holidays/countries/indonesia.py +1 -1
  93. holidays/countries/iran.py +1 -1
  94. holidays/countries/ireland.py +1 -1
  95. holidays/countries/isle_of_man.py +1 -1
  96. holidays/countries/israel.py +1 -1
  97. holidays/countries/italy.py +1 -1
  98. holidays/countries/ivory_coast.py +5 -5
  99. holidays/countries/jamaica.py +1 -1
  100. holidays/countries/japan.py +1 -1
  101. holidays/countries/jersey.py +1 -1
  102. holidays/countries/jordan.py +1 -1
  103. holidays/countries/kazakhstan.py +1 -1
  104. holidays/countries/kenya.py +1 -1
  105. holidays/countries/kuwait.py +1 -1
  106. holidays/countries/kyrgyzstan.py +1 -1
  107. holidays/countries/laos.py +1 -1
  108. holidays/countries/latvia.py +1 -1
  109. holidays/countries/lesotho.py +1 -1
  110. holidays/countries/liechtenstein.py +1 -1
  111. holidays/countries/lithuania.py +1 -1
  112. holidays/countries/luxembourg.py +1 -1
  113. holidays/countries/macau.py +5 -5
  114. holidays/countries/madagascar.py +1 -1
  115. holidays/countries/malawi.py +1 -1
  116. holidays/countries/malaysia.py +21 -29
  117. holidays/countries/maldives.py +1 -1
  118. holidays/countries/malta.py +1 -1
  119. holidays/countries/marshall_islands.py +1 -1
  120. holidays/countries/mauritania.py +1 -1
  121. holidays/countries/mexico.py +1 -1
  122. holidays/countries/moldova.py +1 -1
  123. holidays/countries/monaco.py +1 -1
  124. holidays/countries/montenegro.py +1 -1
  125. holidays/countries/morocco.py +1 -1
  126. holidays/countries/mozambique.py +1 -1
  127. holidays/countries/namibia.py +1 -1
  128. holidays/countries/nepal.py +441 -0
  129. holidays/countries/netherlands.py +1 -1
  130. holidays/countries/new_zealand.py +19 -19
  131. holidays/countries/nicaragua.py +19 -19
  132. holidays/countries/nigeria.py +1 -1
  133. holidays/countries/north_macedonia.py +1 -1
  134. holidays/countries/northern_mariana_islands.py +2 -1
  135. holidays/countries/norway.py +1 -1
  136. holidays/countries/oman.py +1 -1
  137. holidays/countries/pakistan.py +1 -1
  138. holidays/countries/palau.py +1 -1
  139. holidays/countries/panama.py +1 -1
  140. holidays/countries/papua_new_guinea.py +1 -1
  141. holidays/countries/paraguay.py +1 -1
  142. holidays/countries/peru.py +1 -1
  143. holidays/countries/philippines.py +3 -1
  144. holidays/countries/poland.py +1 -1
  145. holidays/countries/portugal.py +23 -25
  146. holidays/countries/puerto_rico.py +2 -1
  147. holidays/countries/qatar.py +1 -1
  148. holidays/countries/romania.py +1 -1
  149. holidays/countries/russia.py +1 -1
  150. holidays/countries/saint_kitts_and_nevis.py +1 -1
  151. holidays/countries/saint_lucia.py +1 -1
  152. holidays/countries/samoa.py +1 -1
  153. holidays/countries/san_marino.py +1 -1
  154. holidays/countries/sao_tome_and_principe.py +112 -0
  155. holidays/countries/saudi_arabia.py +1 -1
  156. holidays/countries/serbia.py +1 -1
  157. holidays/countries/seychelles.py +1 -1
  158. holidays/countries/sierra_leone.py +1 -1
  159. holidays/countries/singapore.py +5 -2
  160. holidays/countries/slovakia.py +1 -1
  161. holidays/countries/slovenia.py +1 -1
  162. holidays/countries/south_africa.py +1 -1
  163. holidays/countries/south_korea.py +3 -31
  164. holidays/countries/spain.py +43 -20
  165. holidays/countries/sri_lanka.py +1 -1
  166. holidays/countries/suriname.py +1 -1
  167. holidays/countries/sweden.py +1 -1
  168. holidays/countries/switzerland.py +61 -28
  169. holidays/countries/taiwan.py +1 -1
  170. holidays/countries/tanzania.py +1 -1
  171. holidays/countries/thailand.py +3 -3
  172. holidays/countries/timor_leste.py +1 -1
  173. holidays/countries/togo.py +182 -0
  174. holidays/countries/tonga.py +1 -1
  175. holidays/countries/trinidad_and_tobago.py +197 -0
  176. holidays/countries/tunisia.py +1 -1
  177. holidays/countries/turkey.py +1 -1
  178. holidays/countries/tuvalu.py +6 -6
  179. holidays/countries/ukraine.py +1 -1
  180. holidays/countries/united_arab_emirates.py +1 -1
  181. holidays/countries/united_kingdom.py +1 -1
  182. holidays/countries/united_states.py +62 -4
  183. holidays/countries/united_states_minor_outlying_islands.py +2 -1
  184. holidays/countries/united_states_virgin_islands.py +2 -1
  185. holidays/countries/uruguay.py +1 -1
  186. holidays/countries/uzbekistan.py +1 -1
  187. holidays/countries/vanuatu.py +1 -1
  188. holidays/countries/vatican_city.py +30 -32
  189. holidays/countries/venezuela.py +1 -1
  190. holidays/countries/vietnam.py +3 -2
  191. holidays/countries/zambia.py +1 -1
  192. holidays/countries/zimbabwe.py +1 -1
  193. holidays/deprecations/v1_incompatibility.py +1 -1
  194. holidays/financial/__init__.py +1 -1
  195. holidays/financial/brasil_bolsa_balcao.py +1 -1
  196. holidays/financial/european_central_bank.py +1 -1
  197. holidays/financial/ice_futures_europe.py +1 -1
  198. holidays/financial/ny_stock_exchange.py +1 -1
  199. holidays/groups/__init__.py +1 -1
  200. holidays/groups/balinese_saka.py +1 -1
  201. holidays/groups/buddhist.py +1 -1
  202. holidays/groups/chinese.py +6 -4
  203. holidays/groups/christian.py +4 -4
  204. holidays/groups/custom.py +1 -1
  205. holidays/groups/eastern.py +1 -1
  206. holidays/groups/hebrew.py +1 -1
  207. holidays/groups/hindu.py +166 -4
  208. holidays/groups/international.py +1 -1
  209. holidays/groups/islamic.py +1 -1
  210. holidays/groups/persian.py +1 -1
  211. holidays/groups/sinhala.py +1 -1
  212. holidays/groups/thai.py +6 -6
  213. holidays/helpers.py +1 -1
  214. holidays/holiday_base.py +1 -1
  215. holidays/ical.py +2 -2
  216. holidays/locale/am/LC_MESSAGES/ET.mo +0 -0
  217. holidays/locale/ar/LC_MESSAGES/CA.mo +0 -0
  218. holidays/locale/ar/LC_MESSAGES/ET.mo +0 -0
  219. holidays/locale/ca/LC_MESSAGES/AD.mo +0 -0
  220. holidays/locale/coa_CC/LC_MESSAGES/CC.mo +0 -0
  221. holidays/locale/en_CA/LC_MESSAGES/CA.mo +0 -0
  222. holidays/locale/en_CC/LC_MESSAGES/CC.mo +0 -0
  223. holidays/locale/en_CI/LC_MESSAGES/CI.mo +0 -0
  224. holidays/locale/en_ET/LC_MESSAGES/ET.mo +0 -0
  225. holidays/locale/en_GD/LC_MESSAGES/GD.mo +0 -0
  226. holidays/locale/en_IN/LC_MESSAGES/IN.mo +0 -0
  227. holidays/locale/en_TT/LC_MESSAGES/TT.mo +0 -0
  228. holidays/locale/en_US/LC_MESSAGES/AD.mo +0 -0
  229. holidays/locale/en_US/LC_MESSAGES/AR.mo +0 -0
  230. holidays/locale/en_US/LC_MESSAGES/CA.mo +0 -0
  231. holidays/locale/en_US/LC_MESSAGES/CC.mo +0 -0
  232. holidays/locale/en_US/LC_MESSAGES/CI.mo +0 -0
  233. holidays/locale/en_US/LC_MESSAGES/ET.mo +0 -0
  234. holidays/locale/en_US/LC_MESSAGES/GD.mo +0 -0
  235. holidays/locale/en_US/LC_MESSAGES/IN.mo +0 -0
  236. holidays/locale/en_US/LC_MESSAGES/KH.mo +0 -0
  237. holidays/locale/en_US/LC_MESSAGES/ST.mo +0 -0
  238. holidays/locale/en_US/LC_MESSAGES/TG.mo +0 -0
  239. holidays/locale/en_US/LC_MESSAGES/TT.mo +0 -0
  240. holidays/locale/es/LC_MESSAGES/AR.mo +0 -0
  241. holidays/locale/fr/LC_MESSAGES/CA.mo +0 -0
  242. holidays/locale/fr/LC_MESSAGES/TG.mo +0 -0
  243. holidays/locale/hi/LC_MESSAGES/IN.mo +0 -0
  244. holidays/locale/km/LC_MESSAGES/KH.mo +0 -0
  245. holidays/locale/pt_ST/LC_MESSAGES/ST.mo +0 -0
  246. holidays/locale/th/LC_MESSAGES/CA.mo +0 -0
  247. holidays/locale/th/LC_MESSAGES/KH.mo +0 -0
  248. holidays/locale/uk/LC_MESSAGES/AD.mo +0 -0
  249. holidays/locale/uk/LC_MESSAGES/AR.mo +0 -0
  250. holidays/mixins.py +1 -1
  251. holidays/observed_holiday_base.py +1 -1
  252. holidays/registry.py +7 -1
  253. holidays/utils.py +1 -1
  254. holidays/version.py +2 -2
  255. {holidays-0.71.dist-info → holidays-0.73.dist-info}/METADATA +66 -18
  256. {holidays-0.71.dist-info → holidays-0.73.dist-info}/RECORD +260 -239
  257. {holidays-0.71.dist-info → holidays-0.73.dist-info}/WHEEL +1 -1
  258. holidays-0.71.dist-info/licenses/AUTHORS.md → holidays-0.73.dist-info/licenses/CONTRIBUTORS +1 -2
  259. {holidays-0.71.dist-info → holidays-0.73.dist-info}/licenses/LICENSE +1 -1
  260. {holidays-0.71.dist-info → holidays-0.73.dist-info}/top_level.txt +0 -0
holidays/groups/hindu.py CHANGED
@@ -4,7 +4,7 @@
4
4
  # specific sets of holidays on the fly. It aims to make determining whether a
5
5
  # specific date is a holiday as fast and flexible as possible.
6
6
  #
7
- # Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
7
+ # Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
8
8
  # dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9
9
  # ryanss <ryanssdev@icloud.com> (c) 2014-2017
10
10
  # Website: https://github.com/vacanza/holidays
@@ -28,7 +28,7 @@ class HinduCalendarHolidays(EasternCalendarHolidays):
28
28
  self._hindu_calendar_show_estimated = show_estimated
29
29
 
30
30
  def _add_hindu_calendar_holiday(
31
- self, name: str, dt_estimated: tuple[Optional[date], bool]
31
+ self, name: str, dt_estimated: tuple[Optional[date], bool], days_delta: int = 0
32
32
  ) -> Optional[date]:
33
33
  """
34
34
  Add Hindu calendar holiday.
@@ -38,7 +38,7 @@ class HinduCalendarHolidays(EasternCalendarHolidays):
38
38
  """
39
39
 
40
40
  return self._add_eastern_calendar_holiday(
41
- name, dt_estimated, self._hindu_calendar_show_estimated
41
+ name, dt_estimated, self._hindu_calendar_show_estimated, days_delta
42
42
  )
43
43
 
44
44
  def _add_hindu_calendar_holiday_set(
@@ -59,6 +59,18 @@ class HinduCalendarHolidays(EasternCalendarHolidays):
59
59
 
60
60
  return added_dates
61
61
 
62
+ def _add_bhai_dooj(self, name) -> Optional[date]:
63
+ """
64
+ Add Bhai Dooj.
65
+
66
+ Bhai Dooj, also known as Bhai Tika or Bhaiya Dooj, is a Hindu festival celebrating the bond
67
+ between brothers and sisters. It is observed two days after Diwali on the second lunar day
68
+ of the Shukla Paksha in the Hindu month of Kartika.
69
+ """
70
+ return self._add_hindu_calendar_holiday(
71
+ name, self._hindu_calendar.govardhan_puja_date(self._year), days_delta=+1
72
+ )
73
+
62
74
  def _add_buddha_purnima(self, name) -> Optional[date]:
63
75
  """
64
76
  Add Buddha Purnima.
@@ -126,11 +138,21 @@ class HinduCalendarHolidays(EasternCalendarHolidays):
126
138
  name, self._hindu_calendar.ganesh_chaturthi_date(self._year)
127
139
  )
128
140
 
141
+ def _add_gau_krida(self, name) -> Optional[date]:
142
+ """
143
+ Add Gau Krida.
144
+
145
+ Gau Krida, is celebrated the day after Diwali to honor cows.
146
+ """
147
+ return self._add_hindu_calendar_holiday(
148
+ name, self._hindu_calendar.govardhan_puja_date(self._year), days_delta=-1
149
+ )
150
+
129
151
  def _add_govardhan_puja(self, name) -> Optional[date]:
130
152
  """
131
153
  Add Govardhan Puja.
132
154
 
133
- Govardhan Puja, also known as Annakut, is celebrated the day after Diwali
155
+ Govardhan Puja, also known as Annakut, is celebrated after Diwali
134
156
  to honor Lord Krishna. It falls on the first lunar day of the Hindu month of Kartika.
135
157
  https://en.wikipedia.org/wiki/Govardhan_Puja
136
158
  """
@@ -175,6 +197,32 @@ class HinduCalendarHolidays(EasternCalendarHolidays):
175
197
  name, self._hindu_calendar.guru_nanak_jayanti_date(self._year)
176
198
  )
177
199
 
200
+ def _add_gyalpo_losar(self, name) -> Optional[date]:
201
+ """
202
+ Add Gyalpo Losar.
203
+
204
+ Gyalpo Losar marks the Tibetan New Year and is widely celebrated by the
205
+ Tibetan and Sherpa communities in Nepal. It falls on the first day of the
206
+ Tibetan lunar calendar, typically in February or March.
207
+ https://en.wikipedia.org/wiki/Gyalpo_Losar
208
+ """
209
+ return self._add_hindu_calendar_holiday(
210
+ name, self._hindu_calendar.gyalpo_losar_date(self._year)
211
+ )
212
+
213
+ def _add_nepal_holi(self, name) -> Optional[date]:
214
+ """
215
+ Add Holi Festival for Nepal (Mountain & Hilly).
216
+
217
+ Holi, known as the Festival of Colors, is a Hindu festival that marks
218
+ the arrival of spring. It is celebrated on the full moon day of the
219
+ Hindu month of Phalguna (February/March).
220
+ https://en.wikipedia.org/wiki/Holi
221
+ """
222
+ return self._add_hindu_calendar_holiday(
223
+ name, self._hindu_calendar.holi_date(self._year), days_delta=-1
224
+ )
225
+
178
226
  def _add_holi(self, name) -> Optional[date]:
179
227
  """
180
228
  Add Holi Festival.
@@ -198,6 +246,30 @@ class HinduCalendarHolidays(EasternCalendarHolidays):
198
246
  name, self._hindu_calendar.janmashtami_date(self._year)
199
247
  )
200
248
 
249
+ def _add_maha_saptami(self, name) -> Optional[date]:
250
+ """
251
+ Add Maha Saptami.
252
+
253
+ Maha Saptami is the seventh day of Navratri, dedicated to Goddess Durga.
254
+ It is observed in Ashvin (September-October).
255
+ https://en.wikipedia.org/wiki/Navaratri
256
+ """
257
+ return self._add_hindu_calendar_holiday(
258
+ name, self._hindu_calendar.maha_ashtami_date(self._year), days_delta=-1
259
+ )
260
+
261
+ def _add_maha_ashtami(self, name) -> Optional[date]:
262
+ """
263
+ Add Maha Ashtami.
264
+
265
+ Maha Ashtami is the eighth day of Navratri, dedicated to Goddess Durga.
266
+ It is observed in Ashvin (September-October).
267
+ https://en.wikipedia.org/wiki/Navaratri
268
+ """
269
+ return self._add_hindu_calendar_holiday(
270
+ name, self._hindu_calendar.maha_ashtami_date(self._year)
271
+ )
272
+
201
273
  def _add_maha_navami(self, name) -> Optional[date]:
202
274
  """
203
275
  Add Maha Navami.
@@ -256,6 +328,41 @@ class HinduCalendarHolidays(EasternCalendarHolidays):
256
328
  """
257
329
  return self._add_hindu_calendar_holiday(name, self._hindu_calendar.onam_date(self._year))
258
330
 
331
+ def _add_papankusha_ekadashi(self, name) -> Optional[date]:
332
+ """
333
+ Add Papankusha Ekadashi.
334
+
335
+ Papankusha Ekadashi is a Hindu festival which occurs on eleventh day on month of
336
+ Ashwin (September-October).
337
+ https://en.wikipedia.org/wiki/Ekadashi
338
+ """
339
+ return self._add_hindu_calendar_holiday(
340
+ name, self._hindu_calendar.dussehra_date(self._year), days_delta=+1
341
+ )
342
+
343
+ def _add_papankusha_duwadashi(self, name) -> Optional[date]:
344
+ """
345
+ Add Papankusha Duwadashi.
346
+
347
+ Papankusha Duwadashi is a Hindu festival which occurs next day of Papankusha Ekadashi.
348
+ https://en.wikipedia.org/wiki/Ekadashi
349
+ """
350
+ return self._add_hindu_calendar_holiday(
351
+ name, self._hindu_calendar.dussehra_date(self._year), days_delta=+2
352
+ )
353
+
354
+ def _add_pongal(self, name) -> Optional[date]:
355
+ """
356
+ Add Pongal.
357
+
358
+ Pongal is a major harvest festival celebrated in Tamil Nadu, India, marking the
359
+ beginning of the sun's northward journey (Uttarayana). It is usually observed
360
+ on January 14th or 15th every year, coinciding with the Tamil month of Thai.
361
+ The festival is dedicated to the Sun God and marks a season of prosperity and abundance.
362
+ https://en.wikipedia.org/wiki/Pongal_(festival)
363
+ """
364
+ return self._add_hindu_calendar_holiday(name, self._hindu_calendar.pongal_date(self._year))
365
+
259
366
  def _add_raksha_bandhan(self, name) -> Optional[date]:
260
367
  """
261
368
  Add Raksha Bandhan.
@@ -294,6 +401,31 @@ class HinduCalendarHolidays(EasternCalendarHolidays):
294
401
  name, self._hindu_calendar.sharad_navratri_date(self._year)
295
402
  )
296
403
 
404
+ def _add_sonam_losar(self, name) -> Optional[date]:
405
+ """
406
+ Add Sonam Losar.
407
+
408
+ Sonam Losar is the New Year festival celebrated by the Tamang community
409
+ in Nepal. It follows the Tibetan lunar calendar and usually falls in
410
+ January or February.
411
+ https://en.wikipedia.org/wiki/Sonam_Lhosar
412
+ """
413
+ return self._add_hindu_calendar_holiday(
414
+ name, self._hindu_calendar.sonam_losar_date(self._year)
415
+ )
416
+
417
+ def _add_tamu_losar(self, name) -> Optional[date]:
418
+ """
419
+ Add Tamu Losar.
420
+
421
+ Tamu Losar marks the New Year festival of the Gurung community in Nepal.
422
+ It is traditionally celebrated on December 30th each year.
423
+ https://en.wikipedia.org/wiki/Tamu_Lhosar
424
+ """
425
+ return self._add_hindu_calendar_holiday(
426
+ name, self._hindu_calendar.tamu_losar_date(self._year)
427
+ )
428
+
297
429
  def _add_thaipusam(self, name) -> Optional[date]:
298
430
  """
299
431
  Add Thaipusam.
@@ -306,6 +438,36 @@ class HinduCalendarHolidays(EasternCalendarHolidays):
306
438
  name, self._hindu_calendar.thaipusam_date(self._year)
307
439
  )
308
440
 
441
+ def _add_thiruvalluvar_day(self, name) -> Optional[date]:
442
+ """
443
+ Add Thiruvalluvar Day and Mattu Pongal.
444
+
445
+ Thiruvalluvar Day and Mattu Pongal are celebrated in Tamil Nadu, India, as part
446
+ of the Pongal festival. Thiruvalluvar Day honors the classical Tamil poet and
447
+ philosopher Thiruvalluvar, while Mattu Pongal is dedicated to cattle, recognizing
448
+ their importance in agriculture. Both events usually fall on January 15th or 16th
449
+ each year during the Tamil month of Thai.
450
+ https://en.wikipedia.org/wiki/Thiruvalluvar_Day
451
+ https://en.wikipedia.org/wiki/Pongal_(festival)#Mattu_Pongal
452
+ """
453
+ return self._add_hindu_calendar_holiday(
454
+ name, self._hindu_calendar.pongal_date(self._year), days_delta=+1
455
+ )
456
+
457
+ def _add_uzhavar_thirunal(self, name) -> Optional[date]:
458
+ """
459
+ Add Uzhavar Thirunal.
460
+
461
+ Uzhavar Thirunal is a harvest festival celebrated in Tamil Nadu, India,
462
+ as part of the Pongal festivities. It is dedicated to honoring farmers
463
+ (uzhavar) and their contribution to agriculture. Uzhavar Thirunal usually
464
+ falls on January 16th or 17th each year.
465
+ https://en.wikipedia.org/wiki/Pongal_(festival)#Uzhavar_Thirunal
466
+ """
467
+ return self._add_hindu_calendar_holiday(
468
+ name, self._hindu_calendar.pongal_date(self._year), days_delta=+2
469
+ )
470
+
309
471
  def _add_vaisakhi(self, name) -> Optional[date]:
310
472
  """
311
473
  Add Vaisakhi.
@@ -4,7 +4,7 @@
4
4
  # specific sets of holidays on the fly. It aims to make determining whether a
5
5
  # specific date is a holiday as fast and flexible as possible.
6
6
  #
7
- # Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
7
+ # Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
8
8
  # dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9
9
  # ryanss <ryanssdev@icloud.com> (c) 2014-2017
10
10
  # Website: https://github.com/vacanza/holidays
@@ -4,7 +4,7 @@
4
4
  # specific sets of holidays on the fly. It aims to make determining whether a
5
5
  # specific date is a holiday as fast and flexible as possible.
6
6
  #
7
- # Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
7
+ # Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
8
8
  # dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9
9
  # ryanss <ryanssdev@icloud.com> (c) 2014-2017
10
10
  # Website: https://github.com/vacanza/holidays
@@ -4,7 +4,7 @@
4
4
  # specific sets of holidays on the fly. It aims to make determining whether a
5
5
  # specific date is a holiday as fast and flexible as possible.
6
6
  #
7
- # Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
7
+ # Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
8
8
  # dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9
9
  # ryanss <ryanssdev@icloud.com> (c) 2014-2017
10
10
  # Website: https://github.com/vacanza/holidays
@@ -4,7 +4,7 @@
4
4
  # specific sets of holidays on the fly. It aims to make determining whether a
5
5
  # specific date is a holiday as fast and flexible as possible.
6
6
  #
7
- # Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
7
+ # Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
8
8
  # dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9
9
  # ryanss <ryanssdev@icloud.com> (c) 2014-2017
10
10
  # Website: https://github.com/vacanza/holidays
holidays/groups/thai.py CHANGED
@@ -4,7 +4,7 @@
4
4
  # specific sets of holidays on the fly. It aims to make determining whether a
5
5
  # specific date is a holiday as fast and flexible as possible.
6
6
  #
7
- # Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
7
+ # Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
8
8
  # dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9
9
  # ryanss <ryanssdev@icloud.com> (c) 2014-2017
10
10
  # Website: https://github.com/vacanza/holidays
@@ -118,13 +118,13 @@ class ThaiCalendarHolidays:
118
118
  """
119
119
  Add Makha Bucha.
120
120
 
121
- Māgha Pūjā (also written as Makha Bucha Day) is a Buddhist festival
122
- celebrated on the 15th Waxing Day (Full Moon) of Month 3.
121
+ Māgha Pūjā (also written as Makha Bousa and Meak Bochea Day) is a Buddhist
122
+ festival celebrated on the 15th Waxing Day (Full Moon) of Month 3.
123
123
 
124
124
  Khmer variant: always fall on Month 3.
125
125
  Thai variant: will use Month 4 instead for Athikamat years.
126
126
 
127
- https://en.wikipedia.org/wiki/M%C4%81gha_P%C5%ABj%C4%81
127
+ https://en.wikipedia.org/wiki/Māgha_Pūjā
128
128
  """
129
129
  calendar = calendar or self.__calendar
130
130
 
@@ -190,14 +190,14 @@ class ThaiCalendarHolidays:
190
190
  """
191
191
  Add Visakha Bucha.
192
192
 
193
- Vesak(also written as Makha Bucha Day and Meak Bochea Day) is a
193
+ Vesak (also written as Visakha Bousa Day and Visaka Bochea Day) is a
194
194
  Buddhist festival celebrated on the 15th Waxing Day (Full Moon)
195
195
  of Month 6.
196
196
 
197
197
  Khmer variant: always fall on Month 6.
198
198
  Thai variant: will use Month 7 instead for Athikamat years.
199
199
 
200
- https://en.wikipedia.org/wiki/M%C4%81gha_P%C5%ABj%C4%81
200
+ https://en.wikipedia.org/wiki/Vesak
201
201
  """
202
202
  calendar = calendar or self.__calendar
203
203
 
holidays/helpers.py CHANGED
@@ -4,7 +4,7 @@
4
4
  # specific sets of holidays on the fly. It aims to make determining whether a
5
5
  # specific date is a holiday as fast and flexible as possible.
6
6
  #
7
- # Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
7
+ # Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
8
8
  # dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9
9
  # ryanss <ryanssdev@icloud.com> (c) 2014-2017
10
10
  # Website: https://github.com/vacanza/holidays
holidays/holiday_base.py CHANGED
@@ -4,7 +4,7 @@
4
4
  # specific sets of holidays on the fly. It aims to make determining whether a
5
5
  # specific date is a holiday as fast and flexible as possible.
6
6
  #
7
- # Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
7
+ # Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
8
8
  # dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9
9
  # ryanss <ryanssdev@icloud.com> (c) 2014-2017
10
10
  # Website: https://github.com/vacanza/holidays
holidays/ical.py CHANGED
@@ -4,7 +4,7 @@
4
4
  # specific sets of holidays on the fly. It aims to make determining whether a
5
5
  # specific date is a holiday as fast and flexible as possible.
6
6
  #
7
- # Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
7
+ # Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
8
8
  # dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9
9
  # ryanss <ryanssdev@icloud.com> (c) 2014-2017
10
10
  # Website: https://github.com/vacanza/holidays
@@ -212,7 +212,7 @@ class ICalExporter:
212
212
  def save_ics(self, file_path: str) -> None:
213
213
  """Export the calendar data to a .ics file.
214
214
 
215
- While RFC 5545 does not specifically forbid filenames for .ics files, but its advisable
215
+ While RFC 5545 does not specifically forbid filenames for .ics files, but it's advisable
216
216
  to follow general filesystem conventions and avoid using problematic characters.
217
217
 
218
218
  Args:
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
holidays/mixins.py CHANGED
@@ -4,7 +4,7 @@
4
4
  # specific sets of holidays on the fly. It aims to make determining whether a
5
5
  # specific date is a holiday as fast and flexible as possible.
6
6
  #
7
- # Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
7
+ # Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
8
8
  # dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9
9
  # ryanss <ryanssdev@icloud.com> (c) 2014-2017
10
10
  # Website: https://github.com/vacanza/holidays
@@ -4,7 +4,7 @@
4
4
  # specific sets of holidays on the fly. It aims to make determining whether a
5
5
  # specific date is a holiday as fast and flexible as possible.
6
6
  #
7
- # Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
7
+ # Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
8
8
  # dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9
9
  # ryanss <ryanssdev@icloud.com> (c) 2014-2017
10
10
  # Website: https://github.com/vacanza/holidays
holidays/registry.py CHANGED
@@ -4,7 +4,7 @@
4
4
  # specific sets of holidays on the fly. It aims to make determining whether a
5
5
  # specific date is a holiday as fast and flexible as possible.
6
6
  #
7
- # Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
7
+ # Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
8
8
  # dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9
9
  # ryanss <ryanssdev@icloud.com> (c) 2014-2017
10
10
  # Website: https://github.com/vacanza/holidays
@@ -54,6 +54,7 @@ COUNTRIES: RegistryDict = {
54
54
  "chad": ("Chad", "TD", "TCD"),
55
55
  "chile": ("Chile", "CL", "CHL"),
56
56
  "china": ("China", "CN", "CHN"),
57
+ "cocos_islands": ("CocosIslands", "CC", "CCK"),
57
58
  "colombia": ("Colombia", "CO", "COL"),
58
59
  "congo": ("Congo", "CG", "COG"),
59
60
  "costa_rica": ("CostaRica", "CR", "CRI"),
@@ -83,6 +84,7 @@ COUNTRIES: RegistryDict = {
83
84
  "ghana": ("Ghana", "GH", "GHA"),
84
85
  "greece": ("Greece", "GR", "GRC"),
85
86
  "greenland": ("Greenland", "GL", "GRL"),
87
+ "grenada": ("Grenada", "GD", "GRD"),
86
88
  "guam": ("Guam", "GU", "GUM", "HolidaysGU"),
87
89
  "guatemala": ("Guatemala", "GT", "GUA"),
88
90
  "guernsey": ("Guernsey", "GG", "GGY"),
@@ -128,6 +130,7 @@ COUNTRIES: RegistryDict = {
128
130
  "morocco": ("Morocco", "MA", "MOR"),
129
131
  "mozambique": ("Mozambique", "MZ", "MOZ"),
130
132
  "namibia": ("Namibia", "NA", "NAM"),
133
+ "nepal": ("Nepal", "NP", "NPL"),
131
134
  "netherlands": ("Netherlands", "NL", "NLD"),
132
135
  "new_zealand": ("NewZealand", "NZ", "NZL"),
133
136
  "nicaragua": ("Nicaragua", "NI", "NIC"),
@@ -153,6 +156,7 @@ COUNTRIES: RegistryDict = {
153
156
  "saint_lucia": ("SaintLucia", "LC", "LCA"),
154
157
  "samoa": ("Samoa", "WS", "WSM"),
155
158
  "san_marino": ("SanMarino", "SM", "SMR"),
159
+ "sao_tome_and_principe": ("SaoTomeAndPrincipe", "ST", "STP"),
156
160
  "saudi_arabia": ("SaudiArabia", "SA", "SAU"),
157
161
  "serbia": ("Serbia", "RS", "SRB"),
158
162
  "seychelles": ("Seychelles", "SC", "SYC"),
@@ -171,7 +175,9 @@ COUNTRIES: RegistryDict = {
171
175
  "tanzania": ("Tanzania", "TZ", "TZA"),
172
176
  "thailand": ("Thailand", "TH", "THA"),
173
177
  "timor_leste": ("TimorLeste", "TL", "TLS"),
178
+ "togo": ("Togo", "TG", "TGO"),
174
179
  "tonga": ("Tonga", "TO", "TON"),
180
+ "trinidad_and_tobago": ("TrinidadAndTobago", "TT", "TTO"),
175
181
  "tunisia": ("Tunisia", "TN", "TUN"),
176
182
  "turkey": ("Turkey", "TR", "TUR"),
177
183
  "tuvalu": ("Tuvalu", "TV", "TUV"),
holidays/utils.py CHANGED
@@ -4,7 +4,7 @@
4
4
  # specific sets of holidays on the fly. It aims to make determining whether a
5
5
  # specific date is a holiday as fast and flexible as possible.
6
6
  #
7
- # Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
7
+ # Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
8
8
  # dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9
9
  # ryanss <ryanssdev@icloud.com> (c) 2014-2017
10
10
  # Website: https://github.com/vacanza/holidays
holidays/version.py CHANGED
@@ -4,10 +4,10 @@
4
4
  # specific sets of holidays on the fly. It aims to make determining whether a
5
5
  # specific date is a holiday as fast and flexible as possible.
6
6
  #
7
- # Authors: Vacanza Team and individual contributors (see AUTHORS.md file)
7
+ # Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
8
8
  # dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9
9
  # ryanss <ryanssdev@icloud.com> (c) 2014-2017
10
10
  # Website: https://github.com/vacanza/holidays
11
11
  # License: MIT (see LICENSE file)
12
12
 
13
- __version__ = "0.71"
13
+ __version__ = "0.73"