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.
- holidays/__init__.py +1 -1
- holidays/calendars/__init__.py +2 -1
- holidays/calendars/balinese_saka.py +112 -0
- holidays/calendars/buddhist.py +1 -1
- holidays/calendars/chinese.py +1 -1
- holidays/calendars/custom.py +1 -1
- holidays/calendars/gregorian.py +1 -1
- holidays/calendars/hebrew.py +1 -1
- holidays/calendars/hindu.py +866 -2
- holidays/calendars/islamic.py +161 -1
- holidays/calendars/julian.py +1 -1
- holidays/calendars/julian_revised.py +1 -1
- holidays/calendars/persian.py +1 -1
- holidays/calendars/sinhala.py +1 -1
- holidays/calendars/thai.py +309 -257
- holidays/constants.py +3 -1
- holidays/countries/__init__.py +7 -1
- holidays/countries/afghanistan.py +17 -7
- holidays/countries/albania.py +16 -7
- holidays/countries/algeria.py +14 -10
- holidays/countries/american_samoa.py +12 -6
- holidays/countries/andorra.py +5 -4
- holidays/countries/angola.py +15 -14
- holidays/countries/antigua_and_barbuda.py +145 -0
- holidays/countries/argentina.py +787 -169
- holidays/countries/armenia.py +5 -6
- holidays/countries/aruba.py +11 -9
- holidays/countries/australia.py +21 -20
- holidays/countries/austria.py +3 -1
- holidays/countries/azerbaijan.py +30 -19
- holidays/countries/bahamas.py +13 -11
- holidays/countries/bahrain.py +14 -7
- holidays/countries/bangladesh.py +5 -4
- holidays/countries/barbados.py +11 -9
- holidays/countries/belarus.py +15 -15
- holidays/countries/belgium.py +8 -6
- holidays/countries/belize.py +7 -6
- holidays/countries/bolivia.py +12 -11
- holidays/countries/bosnia_and_herzegovina.py +21 -11
- holidays/countries/botswana.py +8 -6
- holidays/countries/brazil.py +8 -7
- holidays/countries/brunei.py +56 -62
- holidays/countries/bulgaria.py +9 -10
- holidays/countries/burkina_faso.py +14 -5
- holidays/countries/burundi.py +17 -12
- holidays/countries/cambodia.py +15 -24
- holidays/countries/cameroon.py +16 -7
- holidays/countries/canada.py +13 -12
- holidays/countries/chad.py +15 -6
- holidays/countries/chile.py +29 -28
- holidays/countries/china.py +39 -38
- holidays/countries/colombia.py +15 -20
- holidays/countries/congo.py +6 -7
- holidays/countries/costa_rica.py +11 -10
- holidays/countries/croatia.py +8 -5
- holidays/countries/cuba.py +30 -27
- holidays/countries/curacao.py +6 -4
- holidays/countries/cyprus.py +4 -5
- holidays/countries/czechia.py +7 -6
- holidays/countries/denmark.py +5 -6
- holidays/countries/djibouti.py +11 -3
- holidays/countries/dominica.py +18 -16
- holidays/countries/dominican_republic.py +6 -4
- holidays/countries/ecuador.py +5 -4
- holidays/countries/egypt.py +10 -11
- holidays/countries/el_salvador.py +6 -5
- holidays/countries/estonia.py +3 -1
- holidays/countries/eswatini.py +6 -4
- holidays/countries/ethiopia.py +26 -11
- holidays/countries/fiji.py +183 -0
- holidays/countries/finland.py +11 -10
- holidays/countries/france.py +6 -9
- holidays/countries/gabon.py +17 -8
- holidays/countries/georgia.py +7 -7
- holidays/countries/germany.py +11 -11
- holidays/countries/ghana.py +14 -6
- holidays/countries/greece.py +4 -5
- holidays/countries/greenland.py +5 -6
- holidays/countries/guam.py +12 -6
- holidays/countries/guatemala.py +7 -9
- holidays/countries/guernsey.py +37 -34
- holidays/countries/guinea.py +182 -0
- holidays/countries/haiti.py +6 -5
- holidays/countries/honduras.py +8 -4
- holidays/countries/hongkong.py +49 -60
- holidays/countries/hungary.py +26 -23
- holidays/countries/iceland.py +5 -4
- holidays/countries/india.py +494 -174
- holidays/countries/indonesia.py +68 -108
- holidays/countries/iran.py +18 -9
- holidays/countries/ireland.py +5 -4
- holidays/countries/isle_of_man.py +2 -2
- holidays/countries/israel.py +4 -5
- holidays/countries/italy.py +5 -4
- holidays/countries/ivory_coast.py +156 -0
- holidays/countries/jamaica.py +6 -4
- holidays/countries/japan.py +5 -5
- holidays/countries/jersey.py +29 -26
- holidays/countries/jordan.py +13 -6
- holidays/countries/kazakhstan.py +72 -51
- holidays/countries/kenya.py +28 -18
- holidays/countries/kuwait.py +14 -7
- holidays/countries/kyrgyzstan.py +11 -6
- holidays/countries/laos.py +21 -29
- holidays/countries/latvia.py +7 -5
- holidays/countries/lesotho.py +6 -5
- holidays/countries/liechtenstein.py +5 -5
- holidays/countries/lithuania.py +4 -5
- holidays/countries/luxembourg.py +5 -3
- holidays/countries/macau.py +480 -0
- holidays/countries/madagascar.py +5 -4
- holidays/countries/malawi.py +6 -4
- holidays/countries/malaysia.py +30 -18
- holidays/countries/maldives.py +14 -7
- holidays/countries/malta.py +10 -19
- holidays/countries/marshall_islands.py +6 -4
- holidays/countries/mauritania.py +13 -6
- holidays/countries/mexico.py +8 -7
- holidays/countries/moldova.py +6 -4
- holidays/countries/monaco.py +6 -4
- holidays/countries/montenegro.py +16 -7
- holidays/countries/morocco.py +13 -8
- holidays/countries/mozambique.py +3 -1
- holidays/countries/namibia.py +7 -5
- holidays/countries/netherlands.py +6 -6
- holidays/countries/new_zealand.py +3 -1
- holidays/countries/nicaragua.py +6 -5
- holidays/countries/nigeria.py +13 -5
- holidays/countries/north_macedonia.py +13 -5
- holidays/countries/northern_mariana_islands.py +12 -6
- holidays/countries/norway.py +15 -15
- holidays/countries/pakistan.py +48 -18
- holidays/countries/palau.py +13 -11
- holidays/countries/panama.py +9 -8
- holidays/countries/papua_new_guinea.py +25 -21
- holidays/countries/paraguay.py +10 -9
- holidays/countries/peru.py +4 -5
- holidays/countries/philippines.py +32 -18
- holidays/countries/poland.py +7 -6
- holidays/countries/portugal.py +13 -15
- holidays/countries/puerto_rico.py +12 -6
- holidays/countries/qatar.py +172 -0
- holidays/countries/romania.py +6 -4
- holidays/countries/russia.py +6 -4
- holidays/countries/saint_kitts_and_nevis.py +24 -22
- holidays/countries/saint_lucia.py +8 -7
- holidays/countries/samoa.py +7 -6
- holidays/countries/san_marino.py +4 -3
- holidays/countries/saudi_arabia.py +15 -15
- holidays/countries/serbia.py +3 -4
- holidays/countries/seychelles.py +22 -26
- holidays/countries/singapore.py +33 -38
- holidays/countries/slovakia.py +6 -5
- holidays/countries/slovenia.py +7 -6
- holidays/countries/south_africa.py +8 -6
- holidays/countries/south_korea.py +25 -32
- holidays/countries/spain.py +31 -24
- holidays/countries/sri_lanka.py +52 -42
- holidays/countries/sweden.py +20 -19
- holidays/countries/switzerland.py +6 -5
- holidays/countries/taiwan.py +230 -31
- holidays/countries/tanzania.py +34 -27
- holidays/countries/thailand.py +134 -142
- holidays/countries/timor_leste.py +38 -17
- holidays/countries/tonga.py +46 -42
- holidays/countries/tunisia.py +9 -3
- holidays/countries/turkey.py +17 -9
- holidays/countries/tuvalu.py +12 -11
- holidays/countries/ukraine.py +54 -54
- holidays/countries/united_arab_emirates.py +43 -30
- holidays/countries/united_kingdom.py +7 -6
- holidays/countries/united_states.py +130 -86
- holidays/countries/united_states_minor_outlying_islands.py +12 -6
- holidays/countries/united_states_virgin_islands.py +12 -6
- holidays/countries/uruguay.py +10 -9
- holidays/countries/uzbekistan.py +16 -7
- holidays/countries/vanuatu.py +7 -5
- holidays/countries/vatican_city.py +16 -15
- holidays/countries/venezuela.py +11 -14
- holidays/countries/vietnam.py +15 -11
- holidays/countries/zambia.py +8 -6
- holidays/countries/zimbabwe.py +6 -4
- holidays/deprecations/v1_incompatibility.py +1 -1
- holidays/financial/__init__.py +1 -1
- holidays/financial/brasil_bolsa_balcao.py +14 -13
- holidays/financial/european_central_bank.py +7 -6
- holidays/financial/ice_futures_europe.py +7 -6
- holidays/financial/ny_stock_exchange.py +13 -10
- holidays/groups/__init__.py +2 -1
- holidays/groups/balinese_saka.py +45 -0
- holidays/groups/buddhist.py +1 -1
- holidays/groups/chinese.py +69 -4
- holidays/groups/christian.py +1 -1
- holidays/groups/custom.py +1 -1
- holidays/groups/eastern.py +1 -1
- holidays/groups/hebrew.py +1 -1
- holidays/groups/hindu.py +256 -1
- holidays/groups/international.py +1 -1
- holidays/groups/islamic.py +17 -3
- holidays/groups/persian.py +1 -1
- holidays/groups/sinhala.py +1 -1
- holidays/groups/thai.py +1 -7
- holidays/helpers.py +1 -1
- holidays/holiday_base.py +410 -273
- holidays/ical.py +228 -0
- holidays/locale/ar_QA/LC_MESSAGES/QA.mo +0 -0
- holidays/locale/de/LC_MESSAGES/PL.mo +0 -0
- holidays/locale/en_CI/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/en_HK/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/en_IN/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/en_MO/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/en_PK/LC_MESSAGES/PK.mo +0 -0
- holidays/locale/en_TL/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/GN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/PK.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/QA.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/en_US/LC_MESSAGES/TW.mo +0 -0
- holidays/locale/es/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/CI.mo +0 -0
- holidays/locale/fr/LC_MESSAGES/GN.mo +0 -0
- holidays/locale/hi/LC_MESSAGES/IN.mo +0 -0
- holidays/locale/pt_MO/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/pt_TL/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/tet/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/th/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/th/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/th/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/th/LC_MESSAGES/TW.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/ur_PK/LC_MESSAGES/PK.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/zh_CN/LC_MESSAGES/TW.mo +0 -0
- holidays/locale/zh_HK/LC_MESSAGES/HK.mo +0 -0
- holidays/locale/zh_MO/LC_MESSAGES/MO.mo +0 -0
- holidays/locale/zh_TW/LC_MESSAGES/TW.mo +0 -0
- holidays/mixins.py +2 -2
- holidays/observed_holiday_base.py +5 -2
- holidays/registry.py +7 -1
- holidays/utils.py +151 -151
- holidays/version.py +2 -2
- holidays-0.70.dist-info/METADATA +1404 -0
- {holidays-0.68.dist-info → holidays-0.70.dist-info}/RECORD +253 -222
- {holidays-0.68.dist-info → holidays-0.70.dist-info}/WHEEL +1 -1
- holidays-0.68.dist-info/AUTHORS → holidays-0.70.dist-info/licenses/AUTHORS.md +7 -2
- {holidays-0.68.dist-info → holidays-0.70.dist-info/licenses}/LICENSE +1 -1
- holidays-0.68.dist-info/METADATA +0 -1080
- {holidays-0.68.dist-info → holidays-0.70.dist-info}/top_level.txt +0 -0
holidays/countries/slovakia.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 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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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"
|
holidays/countries/slovenia.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 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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
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
|
-
|
|
69
|
-
|
|
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
|
-
|
|
73
|
-
|
|
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
|
-
|
|
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
|
-
|
|
337
|
-
|
|
338
|
-
|
|
329
|
+
* <https://namu.wiki/w/임시공휴일> *
|
|
330
|
+
* <https://namu.wiki/w/공휴일/대한민국> **
|
|
331
|
+
* <https://namu.wiki/w/대체%20휴일%20제도>
|
|
339
332
|
|
|
340
|
-
|
|
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
|
-
|
|
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
|
|
holidays/countries/spain.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 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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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__(
|
|
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)
|
holidays/countries/sri_lanka.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 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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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__(
|
|
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
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
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.
|
holidays/countries/sweden.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 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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
:
|
|
45
|
-
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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"
|