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
@@ -0,0 +1,441 @@
1
+ # holidays
2
+ # --------
3
+ # A fast, efficient Python library for generating country, province and state
4
+ # specific sets of holidays on the fly. It aims to make determining whether a
5
+ # specific date is a holiday as fast and flexible as possible.
6
+ #
7
+ # Authors: Vacanza Team and individual contributors (see CONTRIBUTORS file)
8
+ # dr-prodigy <dr.prodigy.github@gmail.com> (c) 2017-2023
9
+ # ryanss <ryanssdev@icloud.com> (c) 2014-2017
10
+ # Website: https://github.com/vacanza/holidays
11
+ # License: MIT (see LICENSE file)
12
+
13
+ from holidays.calendars import _CustomIslamicHolidays, _CustomHinduHolidays
14
+ from holidays.calendars.gregorian import JAN, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV
15
+ from holidays.constants import PUBLIC, WORKDAY
16
+ from holidays.groups import (
17
+ ChristianHolidays,
18
+ HinduCalendarHolidays,
19
+ InternationalHolidays,
20
+ IslamicHolidays,
21
+ StaticHolidays,
22
+ )
23
+ from holidays.holiday_base import HolidayBase
24
+
25
+
26
+ class Nepal(
27
+ HolidayBase,
28
+ ChristianHolidays,
29
+ HinduCalendarHolidays,
30
+ InternationalHolidays,
31
+ IslamicHolidays,
32
+ StaticHolidays,
33
+ ):
34
+ """Nepal holidays.
35
+
36
+ References:
37
+ * <https://en.wikipedia.org/wiki/Public_holidays_in_Nepal>
38
+ * <https://narayanilawfirm.org.np/list-of-public-holidays-in-nepal-2079/>
39
+ * <https://www.timeanddate.com/holidays/nepal/>
40
+ * <https://kathmandupost.com/national/2018/03/29/government-trims-public-holidays-by-22-days>
41
+ * <https://kathmandupost.com/national/2021/02/13/two-years-after-shortening-public-holiday-list-government-starts-adding-to-it-again>
42
+ * <https://english.hamropatro.com/nepali-public-holidays>
43
+ * <https://english.hamropatro.com/calendar>
44
+ * <https://www.ashesh.com.np/nepali-calendar/>
45
+ * <https://www.bolpatra.gov.np/egp/openDateConverter>
46
+ * <https://www.moha.gov.np/en/page/holidays>
47
+ """
48
+
49
+ country = "NP"
50
+ # %s (estimated).
51
+ estimated_label = "%s (estimated)"
52
+ start_year = 2010
53
+ supported_categories = (PUBLIC, WORKDAY)
54
+
55
+ def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
56
+ """
57
+ Args:
58
+ islamic_show_estimated:
59
+ Whether to add "estimated" label to Islamic holidays name
60
+ if holiday date is estimated.
61
+ """
62
+ ChristianHolidays.__init__(self)
63
+ HinduCalendarHolidays.__init__(self, cls=NepalHinduHolidays)
64
+ InternationalHolidays.__init__(self)
65
+ IslamicHolidays.__init__(
66
+ self, cls=NepalIslamicHolidays, show_estimated=islamic_show_estimated
67
+ )
68
+ StaticHolidays.__init__(self, cls=NepalStaticHolidays)
69
+ super().__init__(*args, **kwargs)
70
+
71
+ def _add_non_continuous_holidays(self, is_workday: bool = False):
72
+ """Holidays removed by MoHA between 2019-2020."""
73
+ if (2019 <= self._year <= 2020) == is_workday:
74
+ martyrs_day_dates = {
75
+ 2010: (JAN, 30),
76
+ 2011: (JAN, 30),
77
+ 2012: (JAN, 30),
78
+ 2013: (JAN, 29),
79
+ 2014: (JAN, 30),
80
+ 2015: (JAN, 30),
81
+ 2016: (JAN, 30),
82
+ 2017: (JAN, 29),
83
+ 2018: (JAN, 30),
84
+ 2019: (JAN, 30),
85
+ 2020: (JAN, 30),
86
+ 2021: (JAN, 29),
87
+ 2022: (JAN, 30),
88
+ 2023: (JAN, 30),
89
+ 2024: (JAN, 30),
90
+ 2025: (JAN, 29),
91
+ 2026: (JAN, 29),
92
+ 2027: (JAN, 29),
93
+ 2028: (JAN, 29),
94
+ 2029: (JAN, 29),
95
+ 2030: (JAN, 29),
96
+ 2031: (JAN, 30),
97
+ 2032: (JAN, 30),
98
+ 2033: (JAN, 29),
99
+ }
100
+ if self._year in martyrs_day_dates:
101
+ # Martyr's Day.
102
+ self._add_holiday("Martyr's Day", martyrs_day_dates[self._year])
103
+
104
+ democracy_day_dates = {
105
+ 2010: (FEB, 19),
106
+ 2011: (FEB, 19),
107
+ 2012: (FEB, 19),
108
+ 2013: (FEB, 18),
109
+ 2014: (FEB, 19),
110
+ 2015: (FEB, 19),
111
+ 2016: (FEB, 19),
112
+ 2017: (FEB, 18),
113
+ 2018: (FEB, 19),
114
+ 2019: (FEB, 19),
115
+ 2020: (FEB, 19),
116
+ 2021: (FEB, 19),
117
+ 2022: (FEB, 19),
118
+ 2023: (FEB, 19),
119
+ 2024: (FEB, 19),
120
+ 2025: (FEB, 19),
121
+ 2026: (FEB, 19),
122
+ 2027: (FEB, 19),
123
+ 2028: (FEB, 19),
124
+ 2029: (FEB, 19),
125
+ 2030: (FEB, 19),
126
+ 2031: (FEB, 20),
127
+ 2032: (FEB, 20),
128
+ 2033: (FEB, 19),
129
+ }
130
+ if self._year in democracy_day_dates:
131
+ # National Democracy Day.
132
+ self._add_holiday("National Democracy Day", democracy_day_dates[self._year])
133
+
134
+ republic_day_dates = {
135
+ 2010: (MAY, 29),
136
+ 2011: (MAY, 29),
137
+ 2012: (MAY, 28),
138
+ 2013: (MAY, 29),
139
+ 2014: (MAY, 29),
140
+ 2015: (MAY, 29),
141
+ 2016: (MAY, 28),
142
+ 2017: (MAY, 29),
143
+ 2018: (MAY, 29),
144
+ 2019: (MAY, 29),
145
+ 2020: (MAY, 28),
146
+ 2021: (MAY, 29),
147
+ 2022: (MAY, 29),
148
+ 2023: (MAY, 29),
149
+ 2024: (MAY, 28),
150
+ 2025: (MAY, 28),
151
+ 2026: (MAY, 29),
152
+ 2027: (MAY, 29),
153
+ 2028: (MAY, 28),
154
+ 2029: (MAY, 28),
155
+ 2030: (MAY, 29),
156
+ 2031: (MAY, 29),
157
+ 2032: (MAY, 28),
158
+ }
159
+ if self._year in republic_day_dates:
160
+ # Established in 2009.
161
+ # Republic Day.
162
+ self._add_holiday("Republic Day", republic_day_dates[self._year])
163
+
164
+ # Hindu Holidays.
165
+
166
+ # Ram Navami.
167
+ self._add_ram_navami("Ram Navami")
168
+
169
+ # Janai Poornima.
170
+ self._add_raksha_bandhan("Janai Poornima")
171
+
172
+ # Shree Krishna Janmashtami.
173
+ self._add_janmashtami("Shree Krishna Janmashtami")
174
+
175
+ # Ghatasthapana.
176
+ self._add_sharad_navratri("Ghatasthapana")
177
+
178
+ # Duwadashi (Dashain).
179
+ self._add_papankusha_duwadashi("Duwadashi (Dashain)")
180
+
181
+ def _populate_public_holidays(self):
182
+ if self._year >= 2023:
183
+ # Prithvi Jayanti.
184
+ self._add_holiday_jan_11("Prithvi Jayanti")
185
+
186
+ # International Women's Day.
187
+ self._add_womens_day("International Women's Day")
188
+
189
+ # Nepal New Year.
190
+ self._add_vaisakhi("Nepali New Year")
191
+
192
+ # International Labour Day.
193
+ self._add_labor_day("International Labour Day")
194
+
195
+ constitution_day_dates = {
196
+ 2016: (SEP, 19),
197
+ 2017: (SEP, 19),
198
+ 2018: (SEP, 19),
199
+ 2019: (SEP, 20),
200
+ 2020: (SEP, 19),
201
+ 2021: (SEP, 19),
202
+ 2022: (SEP, 19),
203
+ 2023: (SEP, 20),
204
+ 2024: (SEP, 19),
205
+ 2025: (SEP, 19),
206
+ 2026: (SEP, 19),
207
+ 2027: (SEP, 19),
208
+ 2028: (SEP, 18),
209
+ 2029: (SEP, 19),
210
+ 2030: (SEP, 19),
211
+ 2031: (SEP, 19),
212
+ 2032: (SEP, 19),
213
+ }
214
+ if self._year in constitution_day_dates:
215
+ # Constitution Day.
216
+ self._add_holiday("Constitution Day", constitution_day_dates[self._year])
217
+
218
+ # Christmas Day.
219
+ self._add_christmas_day("Christmas Day")
220
+
221
+ # Hindu holidays.
222
+
223
+ # Maghe Sankranti.
224
+ self._add_makar_sankranti("Maghe Sankranti")
225
+
226
+ # Sonam Lhochhar.
227
+ self._add_sonam_losar("Sonam Lhochhar")
228
+
229
+ # Maha Shivaratri.
230
+ self._add_maha_shivaratri("Maha Shivaratri")
231
+
232
+ # Gyalpo Lhosar.
233
+ self._add_gyalpo_losar("Gyalpo Lhosar")
234
+
235
+ # Fagu Poornima.
236
+ self._add_nepal_holi("Fagu Poornima")
237
+
238
+ # Fagu Poornima (Terai).
239
+ self._add_holi("Fagu Poornima (Terai)")
240
+
241
+ # Buddha Jayanti.
242
+ self._add_buddha_purnima("Buddha Jayanti")
243
+
244
+ # Fulpati.
245
+ self._add_maha_saptami("Fulpati")
246
+
247
+ # Maha Ashtami.
248
+ self._add_maha_ashtami("Maha Ashtami")
249
+
250
+ # Maha Navami.
251
+ self._add_maha_navami("Maha Navami")
252
+
253
+ # Bijaya Dashami.
254
+ self._add_dussehra("Bijaya Dashami")
255
+
256
+ # Ekadashi (Dashain).
257
+ self._add_papankusha_ekadashi("Ekadashi (Dashain)")
258
+
259
+ # Laxmi Pooja.
260
+ self._add_diwali_india("Laxmi Pooja")
261
+
262
+ # Gai Tihar.
263
+ self._add_gau_krida("Gai Tihar")
264
+
265
+ # Gobardhan Pooja.
266
+ self._add_govardhan_puja("Gobardhan Pooja")
267
+
268
+ # Mha Pooja.
269
+ self._add_govardhan_puja("Mha Pooja")
270
+
271
+ # Bhai Tika.
272
+ self._add_bhai_dooj("Bhai Tika")
273
+
274
+ # Chhath Parva.
275
+ self._add_chhath_puja("Chhath Parva")
276
+
277
+ # Tamu Lhochhar.
278
+ self._add_tamu_losar("Tamu Lhochhar")
279
+
280
+ # Islamic holidays.
281
+
282
+ # Eid al-Fitr.
283
+ self._add_eid_al_fitr_day("Id-ul-Fitr")
284
+
285
+ # Eid al-Adha.
286
+ self._add_eid_al_adha_day("Bakrid")
287
+
288
+ # Removed by MoHA between 2019-2020.
289
+ self._add_non_continuous_holidays()
290
+
291
+ def _populate_workday_holidays(self):
292
+ self._add_non_continuous_holidays(is_workday=True)
293
+
294
+
295
+ class NepalIslamicHolidays(_CustomIslamicHolidays):
296
+ # Bakrid / Eid-al-Adha.
297
+ EID_AL_ADHA_DATES = {
298
+ 2010: (NOV, 17),
299
+ 2011: (NOV, 7),
300
+ 2012: (OCT, 27),
301
+ 2013: (OCT, 16),
302
+ 2014: (OCT, 6),
303
+ 2015: (SEP, 25),
304
+ 2016: (SEP, 13),
305
+ 2017: (SEP, 2),
306
+ 2018: (AUG, 22),
307
+ 2019: (AUG, 12),
308
+ 2020: (AUG, 1),
309
+ 2021: (JUL, 21),
310
+ 2022: (JUL, 10),
311
+ 2023: (JUN, 29),
312
+ 2024: (JUN, 17),
313
+ 2025: (JUN, 7),
314
+ }
315
+
316
+ # Id-ul-Fitr / Eid-al-Fitr.
317
+ EID_AL_FITR_DATES = {
318
+ 2010: (SEP, 10),
319
+ 2011: (AUG, 31),
320
+ 2012: (AUG, 20),
321
+ 2013: (AUG, 8),
322
+ 2014: (JUL, 29),
323
+ 2015: (JUL, 18),
324
+ 2016: (JUL, 7),
325
+ 2017: (JUN, 26),
326
+ 2018: (JUN, 16),
327
+ 2019: (JUN, 5),
328
+ 2020: (MAY, 25),
329
+ 2021: (MAY, 14),
330
+ 2022: (MAY, 3),
331
+ 2023: (APR, 22),
332
+ 2024: (APR, 11),
333
+ 2025: (MAR, 31),
334
+ }
335
+
336
+
337
+ class NepalHinduHolidays(_CustomHinduHolidays):
338
+ # Maghe Sankranti.
339
+ MAKAR_SANKRANTI_DATES = {
340
+ 2022: (JAN, 15),
341
+ 2023: (JAN, 15),
342
+ 2024: (JAN, 15),
343
+ 2026: (JAN, 15),
344
+ }
345
+
346
+ # Fagu Poornima (Terai).
347
+ HOLI_DATES = {
348
+ 2023: (MAR, 7),
349
+ 2026: (MAR, 3),
350
+ }
351
+
352
+ # Ram Navami.
353
+ RAM_NAVAMI_DATES = {
354
+ 2026: (MAR, 27),
355
+ }
356
+
357
+ # Nepal New Year.
358
+ VAISAKHI_DATES = {
359
+ 2025: (APR, 14),
360
+ }
361
+
362
+ # Janai Punima.
363
+ RAKSHA_BANDHAN_DATES = {
364
+ 2022: (AUG, 12),
365
+ 2023: (AUG, 31),
366
+ }
367
+
368
+ # Shree Krishna Janmashtami.
369
+ JANMASHTAMI_DATES = {
370
+ 2023: (SEP, 6),
371
+ }
372
+
373
+ # Maha Ashtami.
374
+ MAHA_ASHTAMI_DATES = {
375
+ 2020: (OCT, 24),
376
+ }
377
+
378
+ # Maha Navami.
379
+ MAHA_NAVAMI_DATES = {
380
+ 2020: (OCT, 25),
381
+ }
382
+
383
+ # Bijaya Dashami.
384
+ DUSSEHRA_DATES = {
385
+ 2020: (OCT, 26),
386
+ }
387
+
388
+ # Gobardhan Pooja.
389
+ GOVARDHAN_PUJA_DATES = {
390
+ 2020: (NOV, 16),
391
+ 2022: (OCT, 26),
392
+ 2023: (NOV, 14),
393
+ }
394
+
395
+ # Chhath Parva.
396
+ CHHATH_PUJA_DATES = {
397
+ 2025: (OCT, 27),
398
+ }
399
+
400
+
401
+ class NP(Nepal):
402
+ pass
403
+
404
+
405
+ class NPL(Nepal):
406
+ pass
407
+
408
+
409
+ class NepalStaticHolidays:
410
+ """Nepal special holidays.
411
+
412
+ References:
413
+ * [Death of Krishna Prasad Bhattarai](https://myrepublica.nagariknetwork.com/news/27618/)
414
+ * [Death of Sushil Koirala](https://kathmandupost.com/miscellaneous/2016/02/09/cabinet-decision-koirala-to-be-honoured-with-state-funeral)
415
+ * [Crash of Yeti Airlines Flight 691](https://edition.cnn.com/2023/01/15/asia/nepal-yeti-airlines-crash-intl-hnk/index.html)
416
+ * [People's War Day Instituted](https://kathmandupost.com/national/2023/02/12/government-announces-public-holiday-on-monday-to-mark-people-s-war-day)
417
+ * [People's War Day Annulled](https://kathmandupost.com/national/2023/12/29/supreme-court-annuls-public-holiday-on-people-s-war-day)
418
+ * [Death of Subas Chandra Nembang](https://en.nepalkhabar.com/news/detail/6023/)
419
+ """
420
+
421
+ # Day of National Mourning.
422
+ name_day_of_national_mourning = "Day of National Mourning"
423
+
424
+ # Tihar Holiday.
425
+ name_tihar_holiday = "Tihar Holiday"
426
+
427
+ special_public_holidays = {
428
+ 2011: (MAR, 6, name_day_of_national_mourning),
429
+ 2016: (FEB, 10, name_day_of_national_mourning),
430
+ 2021: (NOV, 7, name_tihar_holiday),
431
+ 2022: (OCT, 28, name_tihar_holiday),
432
+ 2023: (
433
+ (JAN, 16, name_day_of_national_mourning),
434
+ # People War's Day.
435
+ (FEB, 13, "People War's Day"),
436
+ (SEP, 14, name_day_of_national_mourning),
437
+ (NOV, 16, name_tihar_holiday),
438
+ ),
439
+ 2024: (NOV, 4, name_tihar_holiday),
440
+ 2025: (OCT, 24, name_tihar_holiday),
441
+ }
@@ -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
@@ -28,26 +28,27 @@ class NewZealand(ObservedHolidayBase, ChristianHolidays, InternationalHolidays,
28
28
 
29
29
  country = "NZ"
30
30
  observed_label = "%s (observed)"
31
+ start_year = 1894
31
32
  subdivisions = (
32
33
  # ISO 3166-2: Regions and Special Island Authorities.
33
34
  # https://en.wikipedia.org/wiki/ISO_3166-2:NZ
34
- "AUK", # Auckland / Tāmaki-makaurau
35
- "BOP", # Bay of Plenty / Toi Moana
36
- "CAN", # Canterbury / Waitaha
37
- "CIT", # Chatham Islands Territory / Wharekauri
38
- "GIS", # Gisborne / Te Tairāwhiti
39
- "HKB", # Hawke's Bay / Te Matau a Māui
40
- "MBH", # Marlborough
41
- "MWT", # Manawatū-Whanganui / Manawatū Whanganui
42
- "NSN", # Nelson / Whakatū
43
- "NTL", # Northland / Te Tai tokerau
44
- "OTA", # Otago / Ō Tākou
45
- "STL", # Southland / Te Taiao Tonga
46
- "TAS", # Tasman / Te tai o Aorere
47
- "TKI", # Taranaki
48
- "WGN", # Greater Wellington / Te Pane Matua Taiao
49
- "WKO", # Waikato
50
- "WTC", # West Coast / Te Tai o Poutini
35
+ "AUK", # Auckland (Tāmaki-Makaurau).
36
+ "BOP", # Bay of Plenty (Toi Moana).
37
+ "CAN", # Canterbury (Waitaha).
38
+ "CIT", # Chatham Islands Territory (Wharekauri).
39
+ "GIS", # Gisborne (Te Tairāwhiti).
40
+ "HKB", # Hawke's Bay (Te Matau-a-Māui).
41
+ "MBH", # Marlborough (Manawatū-Whanganui).
42
+ "MWT", # Manawatū-Whanganui (Manawatū Whanganui).
43
+ "NSN", # Nelson (Whakatū).
44
+ "NTL", # Northland (Te Taitokerau).
45
+ "OTA", # Otago (Ō Tākou).
46
+ "STL", # Southland (Te Taiao Tonga).
47
+ "TAS", # Tasman (Te tai o Aorere).
48
+ "TKI", # Taranaki (Taranaki).
49
+ "WGN", # Greater Wellington (Te Pane Matua Taiao).
50
+ "WKO", # Waikato (Waikato).
51
+ "WTC", # West Coast (Te Tai o Poutini).
51
52
  # Subregions:
52
53
  # https://www.govt.nz/browse/work/public-holidays-and-work/public-holidays-and-anniversary-dates/
53
54
  "South Canterbury",
@@ -114,7 +115,6 @@ class NewZealand(ObservedHolidayBase, ChristianHolidays, InternationalHolidays,
114
115
  "STC", # For 'South Canterbury' Subregional Holidays.
115
116
  "WTL", # Westland, Correct code is WTC (for West Coast).
116
117
  )
117
- start_year = 1894
118
118
 
119
119
  def __init__(self, *args, **kwargs):
120
120
  ChristianHolidays.__init__(self)
@@ -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,23 +28,23 @@ class Nicaragua(HolidayBase, ChristianHolidays, InternationalHolidays):
28
28
  country = "NI"
29
29
  default_language = "es"
30
30
  subdivisions = (
31
- "AN",
32
- "AS",
33
- "BO",
34
- "CA",
35
- "CI",
36
- "CO",
37
- "ES",
38
- "GR",
39
- "JI",
40
- "LE",
41
- "MD",
42
- "MN",
43
- "MS",
44
- "MT",
45
- "NS",
46
- "RI",
47
- "SJ",
31
+ "AN", # Costa Caribe Norte.
32
+ "AS", # Costa Caribe Sur.
33
+ "BO", # Boaco.
34
+ "CA", # Carazo.
35
+ "CI", # Chinandega.
36
+ "CO", # Chontales.
37
+ "ES", # Estelí.
38
+ "GR", # Granada.
39
+ "JI", # Jinotega.
40
+ "LE", # León.
41
+ "MD", # Madriz.
42
+ "MN", # Managua.
43
+ "MS", # Masaya.
44
+ "MT", # Matagalpa.
45
+ "NS", # Nueva Segovia.
46
+ "RI", # Rivas.
47
+ "SJ", # Río San Juan.
48
48
  )
49
49
  subdivisions_aliases = {
50
50
  "Costa Caribe Norte": "AN",
@@ -62,8 +62,8 @@ class Nicaragua(HolidayBase, ChristianHolidays, InternationalHolidays):
62
62
  "Masaya": "MS",
63
63
  "Matagalpa": "MT",
64
64
  "Nueva Segovia": "NS",
65
- "Río San Juan": "SJ",
66
65
  "Rivas": "RI",
66
+ "Río San Juan": "SJ",
67
67
  }
68
68
  supported_languages = ("en_US", "es", "uk")
69
69
 
@@ -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
@@ -24,6 +24,7 @@ class HolidaysMP(US):
24
24
  country = "MP"
25
25
  supported_categories = (GOVERNMENT, PUBLIC, UNOFFICIAL)
26
26
  subdivisions = () # Override US subdivisions.
27
+ subdivisions_aliases = {} # Override US subdivisions aliases.
27
28
 
28
29
  def _populate_public_holidays(self) -> None:
29
30
  self.subdiv = "MP"
@@ -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
@@ -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