holidays 0.68__py3-none-any.whl → 0.70__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 (254) hide show
  1. holidays/__init__.py +1 -1
  2. holidays/calendars/__init__.py +2 -1
  3. holidays/calendars/balinese_saka.py +112 -0
  4. holidays/calendars/buddhist.py +1 -1
  5. holidays/calendars/chinese.py +1 -1
  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 +866 -2
  10. holidays/calendars/islamic.py +161 -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 +309 -257
  16. holidays/constants.py +3 -1
  17. holidays/countries/__init__.py +7 -1
  18. holidays/countries/afghanistan.py +17 -7
  19. holidays/countries/albania.py +16 -7
  20. holidays/countries/algeria.py +14 -10
  21. holidays/countries/american_samoa.py +12 -6
  22. holidays/countries/andorra.py +5 -4
  23. holidays/countries/angola.py +15 -14
  24. holidays/countries/antigua_and_barbuda.py +145 -0
  25. holidays/countries/argentina.py +787 -169
  26. holidays/countries/armenia.py +5 -6
  27. holidays/countries/aruba.py +11 -9
  28. holidays/countries/australia.py +21 -20
  29. holidays/countries/austria.py +3 -1
  30. holidays/countries/azerbaijan.py +30 -19
  31. holidays/countries/bahamas.py +13 -11
  32. holidays/countries/bahrain.py +14 -7
  33. holidays/countries/bangladesh.py +5 -4
  34. holidays/countries/barbados.py +11 -9
  35. holidays/countries/belarus.py +15 -15
  36. holidays/countries/belgium.py +8 -6
  37. holidays/countries/belize.py +7 -6
  38. holidays/countries/bolivia.py +12 -11
  39. holidays/countries/bosnia_and_herzegovina.py +21 -11
  40. holidays/countries/botswana.py +8 -6
  41. holidays/countries/brazil.py +8 -7
  42. holidays/countries/brunei.py +56 -62
  43. holidays/countries/bulgaria.py +9 -10
  44. holidays/countries/burkina_faso.py +14 -5
  45. holidays/countries/burundi.py +17 -12
  46. holidays/countries/cambodia.py +15 -24
  47. holidays/countries/cameroon.py +16 -7
  48. holidays/countries/canada.py +13 -12
  49. holidays/countries/chad.py +15 -6
  50. holidays/countries/chile.py +29 -28
  51. holidays/countries/china.py +39 -38
  52. holidays/countries/colombia.py +15 -20
  53. holidays/countries/congo.py +6 -7
  54. holidays/countries/costa_rica.py +11 -10
  55. holidays/countries/croatia.py +8 -5
  56. holidays/countries/cuba.py +30 -27
  57. holidays/countries/curacao.py +6 -4
  58. holidays/countries/cyprus.py +4 -5
  59. holidays/countries/czechia.py +7 -6
  60. holidays/countries/denmark.py +5 -6
  61. holidays/countries/djibouti.py +11 -3
  62. holidays/countries/dominica.py +18 -16
  63. holidays/countries/dominican_republic.py +6 -4
  64. holidays/countries/ecuador.py +5 -4
  65. holidays/countries/egypt.py +10 -11
  66. holidays/countries/el_salvador.py +6 -5
  67. holidays/countries/estonia.py +3 -1
  68. holidays/countries/eswatini.py +6 -4
  69. holidays/countries/ethiopia.py +26 -11
  70. holidays/countries/fiji.py +183 -0
  71. holidays/countries/finland.py +11 -10
  72. holidays/countries/france.py +6 -9
  73. holidays/countries/gabon.py +17 -8
  74. holidays/countries/georgia.py +7 -7
  75. holidays/countries/germany.py +11 -11
  76. holidays/countries/ghana.py +14 -6
  77. holidays/countries/greece.py +4 -5
  78. holidays/countries/greenland.py +5 -6
  79. holidays/countries/guam.py +12 -6
  80. holidays/countries/guatemala.py +7 -9
  81. holidays/countries/guernsey.py +37 -34
  82. holidays/countries/guinea.py +182 -0
  83. holidays/countries/haiti.py +6 -5
  84. holidays/countries/honduras.py +8 -4
  85. holidays/countries/hongkong.py +49 -60
  86. holidays/countries/hungary.py +26 -23
  87. holidays/countries/iceland.py +5 -4
  88. holidays/countries/india.py +494 -174
  89. holidays/countries/indonesia.py +68 -108
  90. holidays/countries/iran.py +18 -9
  91. holidays/countries/ireland.py +5 -4
  92. holidays/countries/isle_of_man.py +2 -2
  93. holidays/countries/israel.py +4 -5
  94. holidays/countries/italy.py +5 -4
  95. holidays/countries/ivory_coast.py +156 -0
  96. holidays/countries/jamaica.py +6 -4
  97. holidays/countries/japan.py +5 -5
  98. holidays/countries/jersey.py +29 -26
  99. holidays/countries/jordan.py +13 -6
  100. holidays/countries/kazakhstan.py +72 -51
  101. holidays/countries/kenya.py +28 -18
  102. holidays/countries/kuwait.py +14 -7
  103. holidays/countries/kyrgyzstan.py +11 -6
  104. holidays/countries/laos.py +21 -29
  105. holidays/countries/latvia.py +7 -5
  106. holidays/countries/lesotho.py +6 -5
  107. holidays/countries/liechtenstein.py +5 -5
  108. holidays/countries/lithuania.py +4 -5
  109. holidays/countries/luxembourg.py +5 -3
  110. holidays/countries/macau.py +480 -0
  111. holidays/countries/madagascar.py +5 -4
  112. holidays/countries/malawi.py +6 -4
  113. holidays/countries/malaysia.py +30 -18
  114. holidays/countries/maldives.py +14 -7
  115. holidays/countries/malta.py +10 -19
  116. holidays/countries/marshall_islands.py +6 -4
  117. holidays/countries/mauritania.py +13 -6
  118. holidays/countries/mexico.py +8 -7
  119. holidays/countries/moldova.py +6 -4
  120. holidays/countries/monaco.py +6 -4
  121. holidays/countries/montenegro.py +16 -7
  122. holidays/countries/morocco.py +13 -8
  123. holidays/countries/mozambique.py +3 -1
  124. holidays/countries/namibia.py +7 -5
  125. holidays/countries/netherlands.py +6 -6
  126. holidays/countries/new_zealand.py +3 -1
  127. holidays/countries/nicaragua.py +6 -5
  128. holidays/countries/nigeria.py +13 -5
  129. holidays/countries/north_macedonia.py +13 -5
  130. holidays/countries/northern_mariana_islands.py +12 -6
  131. holidays/countries/norway.py +15 -15
  132. holidays/countries/pakistan.py +48 -18
  133. holidays/countries/palau.py +13 -11
  134. holidays/countries/panama.py +9 -8
  135. holidays/countries/papua_new_guinea.py +25 -21
  136. holidays/countries/paraguay.py +10 -9
  137. holidays/countries/peru.py +4 -5
  138. holidays/countries/philippines.py +32 -18
  139. holidays/countries/poland.py +7 -6
  140. holidays/countries/portugal.py +13 -15
  141. holidays/countries/puerto_rico.py +12 -6
  142. holidays/countries/qatar.py +172 -0
  143. holidays/countries/romania.py +6 -4
  144. holidays/countries/russia.py +6 -4
  145. holidays/countries/saint_kitts_and_nevis.py +24 -22
  146. holidays/countries/saint_lucia.py +8 -7
  147. holidays/countries/samoa.py +7 -6
  148. holidays/countries/san_marino.py +4 -3
  149. holidays/countries/saudi_arabia.py +15 -15
  150. holidays/countries/serbia.py +3 -4
  151. holidays/countries/seychelles.py +22 -26
  152. holidays/countries/singapore.py +33 -38
  153. holidays/countries/slovakia.py +6 -5
  154. holidays/countries/slovenia.py +7 -6
  155. holidays/countries/south_africa.py +8 -6
  156. holidays/countries/south_korea.py +25 -32
  157. holidays/countries/spain.py +31 -24
  158. holidays/countries/sri_lanka.py +52 -42
  159. holidays/countries/sweden.py +20 -19
  160. holidays/countries/switzerland.py +6 -5
  161. holidays/countries/taiwan.py +230 -31
  162. holidays/countries/tanzania.py +34 -27
  163. holidays/countries/thailand.py +134 -142
  164. holidays/countries/timor_leste.py +38 -17
  165. holidays/countries/tonga.py +46 -42
  166. holidays/countries/tunisia.py +9 -3
  167. holidays/countries/turkey.py +17 -9
  168. holidays/countries/tuvalu.py +12 -11
  169. holidays/countries/ukraine.py +54 -54
  170. holidays/countries/united_arab_emirates.py +43 -30
  171. holidays/countries/united_kingdom.py +7 -6
  172. holidays/countries/united_states.py +130 -86
  173. holidays/countries/united_states_minor_outlying_islands.py +12 -6
  174. holidays/countries/united_states_virgin_islands.py +12 -6
  175. holidays/countries/uruguay.py +10 -9
  176. holidays/countries/uzbekistan.py +16 -7
  177. holidays/countries/vanuatu.py +7 -5
  178. holidays/countries/vatican_city.py +16 -15
  179. holidays/countries/venezuela.py +11 -14
  180. holidays/countries/vietnam.py +15 -11
  181. holidays/countries/zambia.py +8 -6
  182. holidays/countries/zimbabwe.py +6 -4
  183. holidays/deprecations/v1_incompatibility.py +1 -1
  184. holidays/financial/__init__.py +1 -1
  185. holidays/financial/brasil_bolsa_balcao.py +14 -13
  186. holidays/financial/european_central_bank.py +7 -6
  187. holidays/financial/ice_futures_europe.py +7 -6
  188. holidays/financial/ny_stock_exchange.py +13 -10
  189. holidays/groups/__init__.py +2 -1
  190. holidays/groups/balinese_saka.py +45 -0
  191. holidays/groups/buddhist.py +1 -1
  192. holidays/groups/chinese.py +69 -4
  193. holidays/groups/christian.py +1 -1
  194. holidays/groups/custom.py +1 -1
  195. holidays/groups/eastern.py +1 -1
  196. holidays/groups/hebrew.py +1 -1
  197. holidays/groups/hindu.py +256 -1
  198. holidays/groups/international.py +1 -1
  199. holidays/groups/islamic.py +17 -3
  200. holidays/groups/persian.py +1 -1
  201. holidays/groups/sinhala.py +1 -1
  202. holidays/groups/thai.py +1 -7
  203. holidays/helpers.py +1 -1
  204. holidays/holiday_base.py +410 -273
  205. holidays/ical.py +228 -0
  206. holidays/locale/ar_QA/LC_MESSAGES/QA.mo +0 -0
  207. holidays/locale/de/LC_MESSAGES/PL.mo +0 -0
  208. holidays/locale/en_CI/LC_MESSAGES/CI.mo +0 -0
  209. holidays/locale/en_HK/LC_MESSAGES/HK.mo +0 -0
  210. holidays/locale/en_IN/LC_MESSAGES/IN.mo +0 -0
  211. holidays/locale/en_MO/LC_MESSAGES/MO.mo +0 -0
  212. holidays/locale/en_PK/LC_MESSAGES/PK.mo +0 -0
  213. holidays/locale/en_TL/LC_MESSAGES/TL.mo +0 -0
  214. holidays/locale/en_US/LC_MESSAGES/AR.mo +0 -0
  215. holidays/locale/en_US/LC_MESSAGES/CI.mo +0 -0
  216. holidays/locale/en_US/LC_MESSAGES/GN.mo +0 -0
  217. holidays/locale/en_US/LC_MESSAGES/HK.mo +0 -0
  218. holidays/locale/en_US/LC_MESSAGES/IN.mo +0 -0
  219. holidays/locale/en_US/LC_MESSAGES/MO.mo +0 -0
  220. holidays/locale/en_US/LC_MESSAGES/PK.mo +0 -0
  221. holidays/locale/en_US/LC_MESSAGES/QA.mo +0 -0
  222. holidays/locale/en_US/LC_MESSAGES/TL.mo +0 -0
  223. holidays/locale/en_US/LC_MESSAGES/TW.mo +0 -0
  224. holidays/locale/es/LC_MESSAGES/AR.mo +0 -0
  225. holidays/locale/fr/LC_MESSAGES/CI.mo +0 -0
  226. holidays/locale/fr/LC_MESSAGES/GN.mo +0 -0
  227. holidays/locale/hi/LC_MESSAGES/IN.mo +0 -0
  228. holidays/locale/pt_MO/LC_MESSAGES/MO.mo +0 -0
  229. holidays/locale/pt_TL/LC_MESSAGES/TL.mo +0 -0
  230. holidays/locale/tet/LC_MESSAGES/TL.mo +0 -0
  231. holidays/locale/th/LC_MESSAGES/HK.mo +0 -0
  232. holidays/locale/th/LC_MESSAGES/MO.mo +0 -0
  233. holidays/locale/th/LC_MESSAGES/TL.mo +0 -0
  234. holidays/locale/th/LC_MESSAGES/TW.mo +0 -0
  235. holidays/locale/uk/LC_MESSAGES/AR.mo +0 -0
  236. holidays/locale/ur_PK/LC_MESSAGES/PK.mo +0 -0
  237. holidays/locale/zh_CN/LC_MESSAGES/HK.mo +0 -0
  238. holidays/locale/zh_CN/LC_MESSAGES/MO.mo +0 -0
  239. holidays/locale/zh_CN/LC_MESSAGES/TW.mo +0 -0
  240. holidays/locale/zh_HK/LC_MESSAGES/HK.mo +0 -0
  241. holidays/locale/zh_MO/LC_MESSAGES/MO.mo +0 -0
  242. holidays/locale/zh_TW/LC_MESSAGES/TW.mo +0 -0
  243. holidays/mixins.py +2 -2
  244. holidays/observed_holiday_base.py +5 -2
  245. holidays/registry.py +7 -1
  246. holidays/utils.py +151 -151
  247. holidays/version.py +2 -2
  248. holidays-0.70.dist-info/METADATA +1404 -0
  249. {holidays-0.68.dist-info → holidays-0.70.dist-info}/RECORD +253 -222
  250. {holidays-0.68.dist-info → holidays-0.70.dist-info}/WHEEL +1 -1
  251. holidays-0.68.dist-info/AUTHORS → holidays-0.70.dist-info/licenses/AUTHORS.md +7 -2
  252. {holidays-0.68.dist-info → holidays-0.70.dist-info/licenses}/LICENSE +1 -1
  253. holidays-0.68.dist-info/METADATA +0 -1080
  254. {holidays-0.68.dist-info → holidays-0.70.dist-info}/top_level.txt +0 -0
@@ -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 file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md 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
@@ -19,11 +19,12 @@ from holidays.holiday_base import HolidayBase
19
19
 
20
20
 
21
21
  class Slovakia(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
22
- """
22
+ """Slovakia holidays.
23
+
23
24
  References:
24
- - https://en.wikipedia.org/wiki/Public_holidays_in_Slovakia
25
- - https://sk.wikipedia.org/wiki/Zoznam_sviatkov_na_Slovensku
26
- - https://www.slov-lex.sk/pravne-predpisy/SK/ZZ/1993/241/
25
+ * <https://en.wikipedia.org/wiki/Public_holidays_in_Slovakia>
26
+ * <https://sk.wikipedia.org/wiki/Zoznam_sviatkov_na_Slovensku>
27
+ * <https://www.slov-lex.sk/pravne-predpisy/SK/ZZ/1993/241/>
27
28
  """
28
29
 
29
30
  country = "SK"
@@ -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 file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md 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
@@ -19,12 +19,13 @@ from holidays.holiday_base import HolidayBase
19
19
 
20
20
 
21
21
  class Slovenia(HolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
22
- """
22
+ """Slovenia holidays.
23
+
23
24
  References:
24
- - https://en.wikipedia.org/wiki/Public_holidays_in_Slovenia
25
- - https://sl.wikipedia.org/wiki/Dr%C5%BEavni_prazniki_v_Sloveniji
26
- - https://www.uradni-list.si/glasilo-uradni-list-rs/vsebina/1991-01-1091/zakon-o-praznikih-in-dela-prostih-dnevih-v-republiki-sloveniji
27
- - https://www.gov.si/teme/drzavni-prazniki-in-dela-prosti-dnevi/
25
+ * <https://en.wikipedia.org/wiki/Public_holidays_in_Slovenia>
26
+ * <https://sl.wikipedia.org/wiki/Dr%C5%BEavni_prazniki_v_Sloveniji>
27
+ * <https://www.uradni-list.si/glasilo-uradni-list-rs/vsebina/1991-01-1091/zakon-o-praznikih-in-dela-prostih-dnevih-v-republiki-sloveniji>
28
+ * <https://www.gov.si/teme/drzavni-prazniki-in-dela-prosti-dnevi/>
28
29
  """
29
30
 
30
31
  country = "SI"
@@ -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 file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md 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
@@ -16,11 +16,13 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
16
16
 
17
17
 
18
18
  class SouthAfrica(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
19
- """
20
- https://www.gov.za/about-sa/public-holidays
21
- https://en.wikipedia.org/wiki/Public_holidays_in_South_Africa
22
- https://www.gov.za/speeches/president-cyril-ramaphosa-progress-economic-recovery-30-oct-2023-0000
23
- https://www.gov.za/documents/notices/public-holidays-act-declaration-29-may-2024-public-holiday-23-feb-2024
19
+ """South Africa holidays.
20
+
21
+ References:
22
+ * <https://www.gov.za/about-sa/public-holidays>
23
+ * <https://en.wikipedia.org/wiki/Public_holidays_in_South_Africa>
24
+ * <https://www.gov.za/speeches/president-cyril-ramaphosa-progress-economic-recovery-30-oct-2023-0000>
25
+ * <https://www.gov.za/documents/notices/public-holidays-act-declaration-29-may-2024-public-holiday-23-feb-2024>
24
26
  """
25
27
 
26
28
  country = "ZA"
@@ -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 file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md 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
@@ -51,39 +51,31 @@ class SouthKorea(
51
51
  InternationalHolidays,
52
52
  StaticHolidays,
53
53
  ):
54
- """
54
+ """South Korea holidays.
55
+
55
56
  References:
56
- - https://en.wikipedia.org/wiki/Public_holidays_in_South_Korea
57
- - https://www.law.go.kr/법령/관공서의%20공휴일에%20관한%20규정
58
- - https://elaw.klri.re.kr/eng_service/lawView.do?lang=ENG&hseq=34678
59
- - https://elaw.klri.re.kr/eng_service/%20lawView.do?hseq=38405&lang=ENG
60
- - https://namu.wiki/w/대통령%20선거일
61
- - https://namu.wiki/w/공휴일/대한민국
62
- - https://namu.wiki/w/공휴일/대한민국/역사
63
- - https://namu.wiki/w/대체%20휴일%20제도
64
- - `TH localization 1 <https://overseas.mofa.go.kr/th-th/wpge/m_3133/contents.do>`_
65
- - `TH localization 2 <https://thailand.korean-culture.org/th/138/korea/38>`_
57
+ * <https://en.wikipedia.org/wiki/Public_holidays_in_South_Korea>
58
+ * <https://www.law.go.kr/법령/관공서의%20공휴일에%20관한%20규정>
59
+ * <https://elaw.klri.re.kr/eng_service/lawView.do?lang=ENG&hseq=34678>
60
+ * <https://elaw.klri.re.kr/eng_service/%20lawView.do?hseq=38405&lang=ENG>
61
+ * <https://namu.wiki/w/대통령%20선거일>
62
+ * <https://namu.wiki/w/공휴일/대한민국>
63
+ * <https://namu.wiki/w/공휴일/대한민국/역사>
64
+ * <https://namu.wiki/w/대체%20휴일%20제도>
65
+ * [TH localization 1](https://overseas.mofa.go.kr/th-th/wpge/m_3133/contents.do)
66
+ * [TH localization 2](https://thailand.korean-culture.org/th/138/korea/38)
66
67
 
67
68
  Checked With:
68
- - https://publicholidays.co.kr/ko/2020-dates/
69
- - https://publicholidays.co.kr/ko/2022-dates/
69
+ * <https://publicholidays.co.kr/ko/2020-dates/>
70
+ * <https://publicholidays.co.kr/ko/2022-dates/>
70
71
 
71
72
  According to (3), the alt holidays in Korea are as follows:
72
- - The alt holiday means next first non holiday after the holiday.
73
- - Independence Movement Day, Liberation Day, National Foundation Day,
73
+ * The alt holiday means next first non holiday after the holiday.
74
+ * Independence Movement Day, Liberation Day, National Foundation Day,
74
75
  Hangul Day, Children's Day, Birthday of the Buddha, Christmas Day have
75
76
  alt holiday if they fell on Saturday or Sunday.
76
- - Korean New Year's Day, Korean Mid Autumn Day have alt holiday if they
77
+ * Korean New Year's Day, Korean Mid Autumn Day have alt holiday if they
77
78
  fell on Sunday.
78
-
79
- The alt holidays in Korea are as follows:
80
- - The alt holiday means next first non holiday after the holiday.
81
- - Independence Movement Day, Liberation Day, National Foundation Day,
82
- Hangul Day, Children's Day, Birthday of the Buddha, Christmas Day have
83
- alt holiday if they fell on Saturday or Sunday.
84
- - Lunar New Year's Day, Korean Mid Autumn Day have alt holiday if they
85
- fell on Sunday.
86
-
87
79
  """
88
80
 
89
81
  country = "KR"
@@ -331,15 +323,16 @@ class SouthKoreaLunisolarHolidays(_CustomChineseHolidays):
331
323
 
332
324
 
333
325
  class SouthKoreaStaticHolidays:
334
- """
326
+ """South Korea special holidays.
327
+
335
328
  References:
336
- - https://namu.wiki/w/임시공휴일 *
337
- - https://namu.wiki/w/공휴일/대한민국 **
338
- - https://namu.wiki/w/대체%20휴일%20제도
329
+ * <https://namu.wiki/w/임시공휴일> *
330
+ * <https://namu.wiki/w/공휴일/대한민국> **
331
+ * <https://namu.wiki/w/대체%20휴일%20제도>
339
332
 
340
- (1) Election Dates featured here are the ones prior to the proper recodification to
333
+ 1. Election Dates featured here are the ones prior to the proper recodification to
341
334
  Article 34 of the Public Official Election Act(September 2006)
342
- (2) Sabang Day (사방의 날) was technically in the Public Holidays Act itself, but since it was
335
+ 2. Sabang Day (사방의 날) was technically in the Public Holidays Act itself, but since it was
343
336
  only celebrated in 1960, this is being put here.
344
337
  """
345
338
 
@@ -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 file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md 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
@@ -26,29 +26,28 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SUN_TO_NEXT_MON
26
26
  class Spain(
27
27
  ObservedHolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays, StaticHolidays
28
28
  ):
29
- """
30
- Holidays checked with official sources for 2010-2023 only.
29
+ """Spain holidays.
31
30
 
32
31
  References:
33
- - https://administracion.gob.es/pag_Home/atencionCiudadana/calendarios.html
34
-
35
- Labor Holidays:
36
- 2010: https://www.boe.es/buscar/doc.php?id=BOE-A-2009-18477
37
- 2011: https://www.boe.es/buscar/doc.php?id=BOE-A-2010-15722
38
- 2012: https://www.boe.es/buscar/doc.php?id=BOE-A-2011-16116
39
- 2013: https://www.boe.es/buscar/doc.php?id=BOE-A-2012-13644
40
- 2014: https://www.boe.es/buscar/doc.php?id=BOE-A-2013-12147
41
- 2015: https://www.boe.es/buscar/doc.php?id=BOE-A-2014-10823
42
- 2016: https://www.boe.es/buscar/doc.php?id=BOE-A-2015-11348
43
- 2017: https://www.boe.es/buscar/doc.php?id=BOE-A-2016-9244
44
- 2018: https://www.boe.es/buscar/doc.php?id=BOE-A-2017-11639
45
- 2019: https://www.boe.es/buscar/doc.php?id=BOE-A-2018-14369
46
- 2020: https://www.boe.es/buscar/doc.php?id=BOE-A-2019-14552
47
- 2021: https://www.boe.es/buscar/doc.php?id=BOE-A-2020-13343
48
- 2022: https://www.boe.es/buscar/doc.php?id=BOE-A-2021-17113
49
- 2023: https://www.boe.es/buscar/doc.php?id=BOE-A-2022-16755
50
- 2024: https://www.boe.es/buscar/doc.php?id=BOE-A-2023-22014
51
- 2025: https://www.boe.es/buscar/doc.php?id=BOE-A-2024-21316
32
+ * <https://administracion.gob.es/pag_Home/atencionCiudadana/calendarios.html>
33
+ * [2010](https://www.boe.es/buscar/doc.php?id=BOE-A-2009-18477)
34
+ * [2011](https://www.boe.es/buscar/doc.php?id=BOE-A-2010-15722)
35
+ * [2012](https://www.boe.es/buscar/doc.php?id=BOE-A-2011-16116)
36
+ * [2013](https://www.boe.es/buscar/doc.php?id=BOE-A-2012-13644)
37
+ * [2014](https://www.boe.es/buscar/doc.php?id=BOE-A-2013-12147)
38
+ * [2015](https://www.boe.es/buscar/doc.php?id=BOE-A-2014-10823)
39
+ * [2016](https://www.boe.es/buscar/doc.php?id=BOE-A-2015-11348)
40
+ * [2017](https://www.boe.es/buscar/doc.php?id=BOE-A-2016-9244)
41
+ * [2018](https://www.boe.es/buscar/doc.php?id=BOE-A-2017-11639)
42
+ * [2019](https://www.boe.es/buscar/doc.php?id=BOE-A-2018-14369)
43
+ * [2020](https://www.boe.es/buscar/doc.php?id=BOE-A-2019-14552)
44
+ * [2021](https://www.boe.es/buscar/doc.php?id=BOE-A-2020-13343)
45
+ * [2022](https://www.boe.es/buscar/doc.php?id=BOE-A-2021-17113)
46
+ * [2023](https://www.boe.es/buscar/doc.php?id=BOE-A-2022-16755)
47
+ * [2024](https://www.boe.es/buscar/doc.php?id=BOE-A-2023-22014)
48
+ * [2025](https://www.boe.es/buscar/doc.php?id=BOE-A-2024-21316)
49
+
50
+ Holidays checked with official sources for 2010-2025 only.
52
51
  """
53
52
 
54
53
  country = "ES"
@@ -78,10 +77,18 @@ class Spain(
78
77
  )
79
78
  supported_languages = ("en_US", "es", "uk")
80
79
 
81
- def __init__(self, *args, **kwargs):
80
+ def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
81
+ """
82
+ Args:
83
+ islamic_show_estimated:
84
+ Whether to add "estimated" label to Islamic holidays name
85
+ if holiday date is estimated.
86
+ """
82
87
  ChristianHolidays.__init__(self)
83
88
  InternationalHolidays.__init__(self)
84
- IslamicHolidays.__init__(self, cls=SpainIslamicHolidays)
89
+ IslamicHolidays.__init__(
90
+ self, cls=SpainIslamicHolidays, show_estimated=islamic_show_estimated
91
+ )
85
92
  StaticHolidays.__init__(self, cls=SpainStaticHolidays)
86
93
  kwargs.setdefault("observed_rule", SUN_TO_NEXT_MON)
87
94
  super().__init__(*args, **kwargs)
@@ -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 file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md 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
@@ -49,30 +49,31 @@ class SriLanka(
49
49
  SinhalaCalendarHolidays,
50
50
  StaticHolidays,
51
51
  ):
52
- """
52
+ """Sri Lanka holidays.
53
+
53
54
  References:
54
- - http://www.commonlii.org/lk/legis/num_act/ha29o1971152/ # No. 29 of 1971 (Holidays Act)
55
- - http://www.commonlii.org/lk/legis/num_act/ha21o1991232/ # No. 21 of 1991 (Amendment)
56
- - https://web.archive.org/web/20110722150724/http://www.pubad.gov.lk/Holidays/holidays%202003.htm
57
- - https://web.archive.org/web/20111018053717/http://www.pubad.gov.lk/Holidays/Public%20&%20Bank%20Holidays%202004.pdf
58
- - https://web.archive.org/web/20241120204015/https://documents.gov.lk/en/calendar.php
55
+ * [No. 29 of 1971 (Holidays Act)](http://www.commonlii.org/lk/legis/num_act/ha29o1971152)
56
+ * [No. 21 of 1991 (Amendment)](http://www.commonlii.org/lk/legis/num_act/ha21o1991232)
57
+ * <https://web.archive.org/web/20110722150724/http://www.pubad.gov.lk/Holidays/holidays%202003.htm>
58
+ * <https://web.archive.org/web/20111018053717/http://www.pubad.gov.lk/Holidays/Public%20&%20Bank%20Holidays%202004.pdf>
59
+ * <https://web.archive.org/web/20241120204015/https://documents.gov.lk/en/calendar.php>
59
60
 
60
61
  Cross-Checked With:
61
- - https://web.archive.org/web/20111018053927/http://www.pubad.gov.lk/Holidays/Public%20&%20Bank%20Holidays%202005.pdf
62
- - https://web.archive.org/web/20111018061003/http://www.pubad.gov.lk/Holidays/Public%20&%20Bank%20Holidays%202006.pdf
63
- - https://web.archive.org/web/20110722150032/http://www.pubad.gov.lk/Holidays/Public%20&%20Bank%20Holidays%202007.pdf
64
- - https://web.archive.org/web/20111018071837/http://www.pubad.gov.lk/Holidays/PublicBankHolidays2008.pdf
65
- - https://web.archive.org/web/20120309065711/http://www.pubad.gov.lk/Holidays/Public&BankHolidays2009.pdf
66
- - https://web.archive.org/web/20111018071247/http://www.pubad.gov.lk/Holidays/Public&BankHolidays2010.pdf
67
- - https://web.archive.org/web/20110722151043/http://www.pubad.gov.lk/Holidays/Public&BankHolidays2011.pdf
68
- - https://web.archive.org/web/20111125074237/http://www.pubad.gov.lk/Holidays/Public&BankHolidays2012.pdf
69
- - https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2019
70
- - https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2020
71
- - https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2021
72
- - https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2022
73
- - https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2023
74
- - https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2024
75
- - https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2025
62
+ * <https://web.archive.org/web/20111018053927/http://www.pubad.gov.lk/Holidays/Public%20&%20Bank%20Holidays%202005.pdf>
63
+ * <https://web.archive.org/web/20111018061003/http://www.pubad.gov.lk/Holidays/Public%20&%20Bank%20Holidays%202006.pdf>
64
+ * <https://web.archive.org/web/20110722150032/http://www.pubad.gov.lk/Holidays/Public%20&%20Bank%20Holidays%202007.pdf>
65
+ * <https://web.archive.org/web/20111018071837/http://www.pubad.gov.lk/Holidays/PublicBankHolidays2008.pdf>
66
+ * <https://web.archive.org/web/20120309065711/http://www.pubad.gov.lk/Holidays/Public&BankHolidays2009.pdf>
67
+ * <https://web.archive.org/web/20111018071247/http://www.pubad.gov.lk/Holidays/Public&BankHolidays2010.pdf>
68
+ * <https://web.archive.org/web/20110722151043/http://www.pubad.gov.lk/Holidays/Public&BankHolidays2011.pdf>
69
+ * <https://web.archive.org/web/20111125074237/http://www.pubad.gov.lk/Holidays/Public&BankHolidays2012.pdf>
70
+ * <https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2019>
71
+ * <https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2020>
72
+ * <https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2021>
73
+ * <https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2022>
74
+ * <https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2023>
75
+ * <https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2024>
76
+ * <https://www.cbsl.gov.lk/en/about/about-the-bank/bank-holidays-2025>
76
77
  """
77
78
 
78
79
  country = "LK"
@@ -87,11 +88,19 @@ class SriLanka(
87
88
  start_year = 1972
88
89
  end_year = 2025
89
90
 
90
- def __init__(self, *args, **kwargs):
91
+ def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
92
+ """
93
+ Args:
94
+ islamic_show_estimated:
95
+ Whether to add "estimated" label to Islamic holidays name
96
+ if holiday date is estimated.
97
+ """
91
98
  ChristianHolidays.__init__(self)
92
99
  HinduCalendarHolidays.__init__(self, SriLankaHinduHolidays)
93
100
  InternationalHolidays.__init__(self)
94
- IslamicHolidays.__init__(self, SriLankaIslamicHolidays)
101
+ IslamicHolidays.__init__(
102
+ self, cls=SriLankaIslamicHolidays, show_estimated=islamic_show_estimated
103
+ )
95
104
  SinhalaCalendarHolidays.__init__(self)
96
105
  StaticHolidays.__init__(self, cls=SriLankaStaticHolidays)
97
106
  super().__init__(*args, **kwargs)
@@ -364,25 +373,26 @@ class SriLankaIslamicHolidays(_CustomIslamicHolidays):
364
373
 
365
374
 
366
375
  class SriLankaStaticHolidays:
367
- """
376
+ """Sri Lanka special holdays.
377
+
368
378
  References:
369
- - https://www.adaderana.lk/news.php?nid=13026
370
- - https://www.adaderana.lk/news.php?nid=17539
371
- - https://www.adaderana.lk/news.php?nid=22168
372
- - https://www.adaderana.lk/news.php?nid=34870
373
- - https://www.adaderana.lk/news.php?nid=55146
374
- - https://www.adaderana.lk/news.php?nid=61437
375
- - https://www.adaderana.lk/news.php?nid=64367
376
- - https://www.adaderana.lk/news.php?nid=81686
377
- - https://www.adaderana.lk/news.php?nid=82111
378
- - https://www.adaderana.lk/news.php?nid=82979
379
- - https://www.adaderana.lk/news.php?nid=83082
380
- - https://www.adaderana.lk/news.php?nid=84035
381
- - https://www.adaderana.lk/news.php?nid=98560
382
- - https://www.adaderana.lk/news.php?nid=102125
383
- - https://web.archive.org/web/20110722150724/http://www.pubad.gov.lk/Holidays/holidays%202003.htm
384
- - https://web.archive.org/web/20111018053717/http://www.pubad.gov.lk/Holidays/Public%20&%20Bank%20Holidays%202004.pdf
385
- - https://web.archive.org/web/20241120204015/https://documents.gov.lk/en/calendar.php
379
+ * <https://www.adaderana.lk/news.php?nid=13026>
380
+ * <https://www.adaderana.lk/news.php?nid=17539>
381
+ * <https://www.adaderana.lk/news.php?nid=22168>
382
+ * <https://www.adaderana.lk/news.php?nid=34870>
383
+ * <https://www.adaderana.lk/news.php?nid=55146>
384
+ * <https://www.adaderana.lk/news.php?nid=61437>
385
+ * <https://www.adaderana.lk/news.php?nid=64367>
386
+ * <https://www.adaderana.lk/news.php?nid=81686>
387
+ * <https://www.adaderana.lk/news.php?nid=82111>
388
+ * <https://www.adaderana.lk/news.php?nid=82979>
389
+ * <https://www.adaderana.lk/news.php?nid=83082>
390
+ * <https://www.adaderana.lk/news.php?nid=84035>
391
+ * <https://www.adaderana.lk/news.php?nid=98560>
392
+ * <https://www.adaderana.lk/news.php?nid=102125>
393
+ * <https://web.archive.org/web/20110722150724/http://www.pubad.gov.lk/Holidays/holidays%202003.htm>
394
+ * <https://web.archive.org/web/20111018053717/http://www.pubad.gov.lk/Holidays/Public%20&%20Bank%20Holidays%202004.pdf>
395
+ * <https://web.archive.org/web/20241120204015/https://documents.gov.lk/en/calendar.php>
386
396
  """
387
397
 
388
398
  # Adhi Binara Full Moon Poya Day.
@@ -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 file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md 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
@@ -18,31 +18,32 @@ from holidays.holiday_base import HolidayBase
18
18
 
19
19
 
20
20
  class Sweden(HolidayBase, ChristianHolidays, InternationalHolidays):
21
- """
22
- Swedish holidays.
23
- Note that holidays falling on a sunday are "lost",
24
- it will not be moved to another day to make up for the collision.
25
- In Sweden, ALL sundays are considered a holiday
26
- (https://sv.wikipedia.org/wiki/Helgdagar_i_Sverige).
27
- Initialize this class with include_sundays=False
28
- to not include sundays as a holiday.
29
-
30
- Primary sources:
31
- - https://sv.wikipedia.org/wiki/Helgdagar_i_Sverige
32
- - http://www.riksdagen.se/sv/dokument-lagar/dokument/svensk-forfattningssamling/lag-1989253-om-allmanna-helgdagar_sfs-1989-253
33
- - https://sv.wikipedia.org/wiki/F%C3%B6rsta_maj
34
- - https://sv.wikipedia.org/wiki/Sveriges_nationaldag
35
- - https://sv.wikipedia.org/wiki/Midsommarafton
21
+ """Sweden holidays.
22
+
23
+ References:
24
+ * <https://sv.wikipedia.org/wiki/Helgdagar_i_Sverige>
25
+ * <http://www.riksdagen.se/sv/dokument-lagar/dokument/svensk-forfattningssamling/lag-1989253-om-allmanna-helgdagar_sfs-1989-253>
26
+ * <https://sv.wikipedia.org/wiki/F%C3%B6rsta_maj>
27
+ * <https://sv.wikipedia.org/wiki/Sveriges_nationaldag>
28
+ * <https://sv.wikipedia.org/wiki/Midsommarafton>
29
+
30
+
31
+ Note that holidays falling on a sunday is "lost", it will not be moved
32
+ to another day to make up for the collision.
33
+
34
+ In Sweden, ALL sundays are considered a holiday.
35
+ Initialize this class with `include_sundays=False` to not include sundays as a holiday.
36
36
  """
37
37
 
38
38
  country = "SE"
39
39
  default_language = "sv"
40
40
  supported_languages = ("en_US", "sv", "th", "uk")
41
41
 
42
- def __init__(self, include_sundays=True, *args, **kwargs):
42
+ def __init__(self, include_sundays: bool = True, *args, **kwargs):
43
43
  """
44
- :param include_sundays:
45
- Whether to consider sundays as a holiday (which they are in Sweden)
44
+ Args:
45
+ include_sundays:
46
+ Whether to consider sundays as a holiday (which they are in Sweden)
46
47
  """
47
48
  self.include_sundays = include_sundays
48
49
  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 file)
7
+ # Authors: Vacanza Team and individual contributors (see AUTHORS.md 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
@@ -19,11 +19,12 @@ from holidays.observed_holiday_base import ObservedHolidayBase, MON_ONLY, TUE_TO
19
19
 
20
20
 
21
21
  class Switzerland(ObservedHolidayBase, ChristianHolidays, InternationalHolidays):
22
- """
22
+ """Switzerland holidays.
23
+
23
24
  References:
24
- - https://www.bj.admin.ch/dam/bj/de/data/publiservice/service/zivilprozessrecht/kant-feiertage.pdf
25
- - https://de.wikipedia.org/wiki/Feiertage_in_der_Schweiz
26
- - https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland
25
+ * <https://www.bj.admin.ch/dam/bj/de/data/publiservice/service/zivilprozessrecht/kant-feiertage.pdf>
26
+ * <https://de.wikipedia.org/wiki/Feiertage_in_der_Schweiz>
27
+ * <https://en.wikipedia.org/wiki/Public_holidays_in_Switzerland>
27
28
  """
28
29
 
29
30
  country = "CH"