holidays 0.69__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 +1 -1
- holidays/calendars/balinese_saka.py +3 -3
- 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 +1 -1
- 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 +2 -1
- holidays/countries/__init__.py +6 -1
- holidays/countries/afghanistan.py +11 -7
- holidays/countries/albania.py +10 -7
- holidays/countries/algeria.py +10 -10
- holidays/countries/american_samoa.py +6 -4
- 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 +24 -19
- holidays/countries/bahamas.py +13 -11
- holidays/countries/bahrain.py +8 -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 +15 -11
- holidays/countries/botswana.py +8 -6
- holidays/countries/brazil.py +8 -7
- holidays/countries/brunei.py +50 -62
- holidays/countries/bulgaria.py +9 -10
- holidays/countries/burkina_faso.py +8 -5
- holidays/countries/burundi.py +13 -12
- holidays/countries/cambodia.py +15 -24
- holidays/countries/cameroon.py +10 -7
- holidays/countries/canada.py +13 -12
- holidays/countries/chad.py +9 -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 +7 -3
- holidays/countries/dominica.py +18 -16
- holidays/countries/dominican_republic.py +6 -4
- holidays/countries/ecuador.py +5 -4
- holidays/countries/egypt.py +6 -11
- holidays/countries/el_salvador.py +6 -5
- holidays/countries/estonia.py +3 -1
- holidays/countries/eswatini.py +6 -4
- holidays/countries/ethiopia.py +20 -11
- holidays/countries/fiji.py +183 -0
- holidays/countries/finland.py +11 -10
- holidays/countries/france.py +6 -9
- holidays/countries/gabon.py +11 -8
- holidays/countries/georgia.py +7 -7
- holidays/countries/germany.py +11 -11
- holidays/countries/ghana.py +10 -6
- holidays/countries/greece.py +4 -5
- holidays/countries/greenland.py +5 -6
- holidays/countries/guam.py +6 -4
- 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 +11 -8
- holidays/countries/hungary.py +26 -23
- holidays/countries/iceland.py +5 -4
- holidays/countries/india.py +14 -10
- holidays/countries/indonesia.py +57 -53
- holidays/countries/iran.py +12 -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 +9 -6
- holidays/countries/kazakhstan.py +66 -51
- holidays/countries/kenya.py +22 -18
- holidays/countries/kuwait.py +10 -7
- holidays/countries/kyrgyzstan.py +7 -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 +32 -26
- holidays/countries/madagascar.py +5 -4
- holidays/countries/malawi.py +6 -4
- holidays/countries/malaysia.py +24 -18
- holidays/countries/maldives.py +10 -7
- holidays/countries/malta.py +10 -19
- holidays/countries/marshall_islands.py +6 -4
- holidays/countries/mauritania.py +9 -6
- holidays/countries/mexico.py +8 -7
- holidays/countries/moldova.py +6 -4
- holidays/countries/monaco.py +6 -4
- holidays/countries/montenegro.py +10 -7
- holidays/countries/morocco.py +9 -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 +9 -5
- holidays/countries/north_macedonia.py +9 -5
- holidays/countries/northern_mariana_islands.py +6 -4
- holidays/countries/norway.py +15 -15
- holidays/countries/pakistan.py +41 -17
- 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 +25 -21
- holidays/countries/poland.py +6 -5
- holidays/countries/portugal.py +13 -15
- holidays/countries/puerto_rico.py +6 -4
- 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 +11 -15
- holidays/countries/serbia.py +3 -4
- holidays/countries/seychelles.py +22 -26
- holidays/countries/singapore.py +29 -39
- 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 +25 -24
- holidays/countries/sri_lanka.py +46 -42
- holidays/countries/sweden.py +20 -19
- holidays/countries/switzerland.py +6 -5
- holidays/countries/taiwan.py +50 -48
- holidays/countries/tanzania.py +28 -27
- holidays/countries/thailand.py +134 -142
- holidays/countries/timor_leste.py +20 -18
- holidays/countries/tonga.py +46 -42
- holidays/countries/tunisia.py +5 -3
- holidays/countries/turkey.py +11 -9
- holidays/countries/tuvalu.py +12 -11
- holidays/countries/ukraine.py +54 -54
- holidays/countries/united_arab_emirates.py +37 -30
- holidays/countries/united_kingdom.py +7 -6
- holidays/countries/united_states.py +50 -55
- holidays/countries/united_states_minor_outlying_islands.py +6 -4
- holidays/countries/united_states_virgin_islands.py +6 -4
- holidays/countries/uruguay.py +10 -9
- holidays/countries/uzbekistan.py +10 -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 +1 -1
- holidays/groups/balinese_saka.py +1 -1
- holidays/groups/buddhist.py +1 -1
- holidays/groups/chinese.py +1 -1
- 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 +1 -1
- holidays/groups/international.py +1 -1
- holidays/groups/islamic.py +12 -1
- 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 +366 -244
- holidays/ical.py +228 -0
- holidays/locale/ar_QA/LC_MESSAGES/QA.mo +0 -0
- holidays/locale/en_CI/LC_MESSAGES/CI.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/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/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_TL/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/tet/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/th/LC_MESSAGES/TL.mo +0 -0
- holidays/locale/uk/LC_MESSAGES/AR.mo +0 -0
- holidays/locale/ur_PK/LC_MESSAGES/PK.mo +0 -0
- holidays/mixins.py +2 -2
- holidays/observed_holiday_base.py +5 -2
- holidays/registry.py +6 -1
- holidays/utils.py +151 -151
- holidays/version.py +2 -2
- holidays-0.70.dist-info/METADATA +1404 -0
- {holidays-0.69.dist-info → holidays-0.70.dist-info}/RECORD +235 -217
- {holidays-0.69.dist-info → holidays-0.70.dist-info}/WHEEL +1 -1
- holidays-0.69.dist-info/AUTHORS → holidays-0.70.dist-info/licenses/AUTHORS.md +6 -2
- {holidays-0.69.dist-info → holidays-0.70.dist-info/licenses}/LICENSE +1 -1
- holidays-0.69.dist-info/METADATA +0 -1085
- {holidays-0.69.dist-info → holidays-0.70.dist-info}/top_level.txt +0 -0
holidays/constants.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
|
|
@@ -39,6 +39,7 @@ HOLIDAY_NAME_DELIMITER = "; " # Holiday names separator.
|
|
|
39
39
|
|
|
40
40
|
# Supported holiday categories.
|
|
41
41
|
ARMED_FORCES = "armed_forces"
|
|
42
|
+
ARMENIAN = "armenian"
|
|
42
43
|
BANK = "bank"
|
|
43
44
|
GOVERNMENT = "government"
|
|
44
45
|
HALF_DAY = "half_day"
|
holidays/countries/__init__.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,6 +18,7 @@ from .algeria import Algeria, DZ, DZA
|
|
|
18
18
|
from .american_samoa import AmericanSamoa, AS, ASM, HolidaysAS
|
|
19
19
|
from .andorra import Andorra, AD, AND
|
|
20
20
|
from .angola import Angola, AO, AGO
|
|
21
|
+
from .antigua_and_barbuda import AntiguaAndBarbuda, AG, ATG
|
|
21
22
|
from .argentina import Argentina, AR, ARG
|
|
22
23
|
from .armenia import Armenia, AM, ARM
|
|
23
24
|
from .aruba import Aruba, AW, ABW
|
|
@@ -63,6 +64,7 @@ from .el_salvador import ElSalvador, SV, SLV
|
|
|
63
64
|
from .estonia import Estonia, EE, EST
|
|
64
65
|
from .eswatini import Eswatini, SZ, SZW, Swaziland
|
|
65
66
|
from .ethiopia import Ethiopia, ET, ETH
|
|
67
|
+
from .fiji import Fiji, FJ, FJI
|
|
66
68
|
from .finland import Finland, FI, FIN
|
|
67
69
|
from .france import France, FR, FRA
|
|
68
70
|
from .gabon import Gabon, GA, GAB
|
|
@@ -74,6 +76,7 @@ from .greenland import Greenland, GL, GRL
|
|
|
74
76
|
from .guam import Guam, GU, GUM, HolidaysGU
|
|
75
77
|
from .guatemala import Guatemala, GT, GUA
|
|
76
78
|
from .guernsey import Guernsey, GG, GGY
|
|
79
|
+
from .guinea import Guinea, GN, GIN
|
|
77
80
|
from .haiti import Haiti, HT, HTI
|
|
78
81
|
from .honduras import Honduras, HN, HND
|
|
79
82
|
from .hongkong import HongKong, HK, HKG
|
|
@@ -86,6 +89,7 @@ from .ireland import Ireland, IE, IRL
|
|
|
86
89
|
from .isle_of_man import IsleOfMan, IM, IMN
|
|
87
90
|
from .israel import Israel, IL, ISR
|
|
88
91
|
from .italy import Italy, IT, ITA
|
|
92
|
+
from .ivory_coast import IvoryCoast, CI, CIV
|
|
89
93
|
from .jamaica import Jamaica, JM, JAM
|
|
90
94
|
from .japan import Japan, JP, JPN
|
|
91
95
|
from .jersey import Jersey, JE, JEY
|
|
@@ -132,6 +136,7 @@ from .philippines import Philippines, PH, PHL
|
|
|
132
136
|
from .poland import Poland, PL, POL
|
|
133
137
|
from .portugal import Portugal, PT, PRT
|
|
134
138
|
from .puerto_rico import PuertoRico, PR, PRI, HolidaysPR
|
|
139
|
+
from .qatar import Qatar, QA, QAT
|
|
135
140
|
from .romania import Romania, RO, ROU
|
|
136
141
|
from .russia import Russia, RU, RUS
|
|
137
142
|
from .saint_kitts_and_nevis import SaintKittsAndNevis, KN, KNA
|
|
@@ -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
|
|
@@ -33,10 +33,12 @@ from holidays.holiday_base import HolidayBase
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
class Afghanistan(HolidayBase, InternationalHolidays, IslamicHolidays, PersianCalendarHolidays):
|
|
36
|
-
"""
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
"""Afghanistan holidays.
|
|
37
|
+
|
|
38
|
+
References:
|
|
39
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Afghanistan>
|
|
40
|
+
* <https://www.timeanddate.com/holidays/afghanistan/>
|
|
41
|
+
* <https://en.wikipedia.org/wiki/Workweek_and_weekend>
|
|
40
42
|
"""
|
|
41
43
|
|
|
42
44
|
country = "AF"
|
|
@@ -50,8 +52,10 @@ class Afghanistan(HolidayBase, InternationalHolidays, IslamicHolidays, PersianCa
|
|
|
50
52
|
|
|
51
53
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
52
54
|
"""
|
|
53
|
-
:
|
|
54
|
-
|
|
55
|
+
Args:
|
|
56
|
+
islamic_show_estimated:
|
|
57
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
58
|
+
if holiday date is estimated.
|
|
55
59
|
"""
|
|
56
60
|
InternationalHolidays.__init__(self)
|
|
57
61
|
IslamicHolidays.__init__(
|
holidays/countries/albania.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
|
|
@@ -27,11 +27,12 @@ from holidays.observed_holiday_base import ObservedHolidayBase, SAT_SUN_TO_NEXT_
|
|
|
27
27
|
class Albania(
|
|
28
28
|
ObservedHolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays, StaticHolidays
|
|
29
29
|
):
|
|
30
|
-
"""
|
|
30
|
+
"""Albania holidays.
|
|
31
|
+
|
|
31
32
|
References:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Albania>
|
|
34
|
+
* [Law No. 7651](http://kqk.gov.al/sites/default/files/publikime/ligj_7651_-_per_festat_zyrtare_e_ditet_perkujtimore.pdf)
|
|
35
|
+
* [Holidays for 2018–2024](https://www.bankofalbania.org/Shtypi/Kalendari_i_festave_zyrtare_2024/)
|
|
35
36
|
"""
|
|
36
37
|
|
|
37
38
|
country = "AL"
|
|
@@ -48,8 +49,10 @@ class Albania(
|
|
|
48
49
|
|
|
49
50
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
50
51
|
"""
|
|
51
|
-
:
|
|
52
|
-
|
|
52
|
+
Args:
|
|
53
|
+
islamic_show_estimated:
|
|
54
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
55
|
+
if holiday date is estimated.
|
|
53
56
|
"""
|
|
54
57
|
ChristianHolidays.__init__(self)
|
|
55
58
|
InternationalHolidays.__init__(self)
|
holidays/countries/algeria.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,13 +18,12 @@ from holidays.holiday_base import HolidayBase
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
class Algeria(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
21
|
-
"""
|
|
22
|
-
References:
|
|
23
|
-
- https://en.wikipedia.org/wiki/Public_holidays_in_Algeria
|
|
24
|
-
|
|
25
|
-
As of April 30, 2023. Algeria has 3 days of Eid holidays
|
|
26
|
-
(https://www.horizons.dz/english/archives/amp/12021)
|
|
21
|
+
"""Algeria holidays.
|
|
27
22
|
|
|
23
|
+
References:
|
|
24
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Algeria>
|
|
25
|
+
* <https://www.horizons.dz/english/archives/amp/12021>
|
|
26
|
+
* <https://www.thenationalnews.com/mena/2021/12/07/when-is-the-weekend-in-the-arab-world/>
|
|
28
27
|
"""
|
|
29
28
|
|
|
30
29
|
country = "DZ"
|
|
@@ -35,8 +34,10 @@ class Algeria(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
|
35
34
|
|
|
36
35
|
def __init__(self, islamic_show_estimated: bool = True, *args, **kwargs):
|
|
37
36
|
"""
|
|
38
|
-
:
|
|
39
|
-
|
|
37
|
+
Args:
|
|
38
|
+
islamic_show_estimated:
|
|
39
|
+
Whether to add "estimated" label to Islamic holidays name
|
|
40
|
+
if holiday date is estimated.
|
|
40
41
|
"""
|
|
41
42
|
InternationalHolidays.__init__(self)
|
|
42
43
|
IslamicHolidays.__init__(self, show_estimated=islamic_show_estimated)
|
|
@@ -45,7 +46,6 @@ class Algeria(HolidayBase, InternationalHolidays, IslamicHolidays):
|
|
|
45
46
|
def _populate_public_holidays(self):
|
|
46
47
|
# The resting days are Friday and Saturday since 2009.
|
|
47
48
|
# Previously, these were on Thursday and Friday as implemented in 1976.
|
|
48
|
-
# https://www.thenationalnews.com/mena/2021/12/07/when-is-the-weekend-in-the-arab-world/
|
|
49
49
|
if self._year >= 2009:
|
|
50
50
|
self.weekend = {FRI, SAT}
|
|
51
51
|
elif self._year >= 1976:
|
|
@@ -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
|
|
@@ -15,9 +15,11 @@ from holidays.countries.united_states import US
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class HolidaysAS(US):
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
"""American Samoa holidays.
|
|
19
|
+
|
|
20
|
+
Alias of a US subdivision that is also officially assigned its own country code in ISO 3166-1.
|
|
21
|
+
See <https://en.wikipedia.org/wiki/ISO_3166-2:US#Subdivisions_included_in_ISO_3166-1>
|
|
22
|
+
"""
|
|
21
23
|
|
|
22
24
|
country = "AS"
|
|
23
25
|
supported_categories = (GOVERNMENT, PUBLIC, UNOFFICIAL)
|
holidays/countries/andorra.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
|
|
@@ -15,10 +15,11 @@ from holidays.holiday_base import HolidayBase
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
class Andorra(HolidayBase, ChristianHolidays, InternationalHolidays):
|
|
18
|
-
"""
|
|
18
|
+
"""Andorra holidays.
|
|
19
|
+
|
|
19
20
|
References:
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Andorra>
|
|
22
|
+
* <https://www.holsdb.com/public-holidays/ad>
|
|
22
23
|
"""
|
|
23
24
|
|
|
24
25
|
country = "AD"
|
holidays/countries/angola.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
|
|
@@ -25,20 +25,21 @@ from holidays.observed_holiday_base import (
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
class Angola(ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays):
|
|
28
|
-
"""
|
|
28
|
+
"""Angola holidays.
|
|
29
|
+
|
|
29
30
|
References:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
31
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Angola>
|
|
32
|
+
* <http://www.siac.gv.ao/downloads/181029-Lei-Feriados.pdf>
|
|
33
|
+
* [Decree #5/75](https://www.lexlink.eu/FileGet.aspx?FileId=3023486)
|
|
34
|
+
* [Decree #92/80](https://www.lexlink.eu/FileGet.aspx?FileId=3023473)
|
|
35
|
+
* [Decree #7/92](https://www.lexlink.eu/FileGet.aspx?FileId=3023485)
|
|
36
|
+
* [Law #16/96](https://www.lexlink.eu/FileGet.aspx?FileId=3037036)
|
|
37
|
+
* [Law #1/01](https://www.lexlink.eu/FileGet.aspx?FileId=3029035)
|
|
38
|
+
* [Law #7/03](https://www.lexlink.eu/FileGet.aspx?FileId=3002131)
|
|
39
|
+
* [Law #10/11](https://equadros.gov.ao/documents/40468/0/lei_10_11-1+%281%29.pdf)
|
|
40
|
+
* [Law #11/18](https://equadros.gov.ao/documents/40468/0/Lei_no_11-18+%281%29.pdf)
|
|
41
|
+
* <https://www.officeholidays.com/countries/angola/>
|
|
42
|
+
* <https://www.timeanddate.com/holidays/angola/>
|
|
42
43
|
"""
|
|
43
44
|
|
|
44
45
|
country = "AO"
|
|
@@ -0,0 +1,145 @@
|
|
|
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 AUTHORS.md 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.gregorian import JAN, FEB, MAR, AUG
|
|
14
|
+
from holidays.groups import ChristianHolidays, InternationalHolidays, StaticHolidays
|
|
15
|
+
from holidays.observed_holiday_base import (
|
|
16
|
+
ObservedHolidayBase,
|
|
17
|
+
SUN_TO_NEXT_MON,
|
|
18
|
+
SAT_SUN_TO_NEXT_MON_TUE,
|
|
19
|
+
SAT_SUN_TO_NEXT_MON,
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class AntiguaAndBarbuda(
|
|
24
|
+
ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays
|
|
25
|
+
):
|
|
26
|
+
"""Antigua and Barbuda holidays.
|
|
27
|
+
|
|
28
|
+
References:
|
|
29
|
+
* [The Public Holidays Act, 1954](https://laws.gov.ag/wp-content/uploads/2018/08/cap-354.pdf)
|
|
30
|
+
* [The Public Holidays (Amendment) Act, 2005](https://laws.gov.ag/wp-content/uploads/2018/08/a2005-8.pdf)
|
|
31
|
+
* [The Public Holidays (Amendment) Act, 2014](https://laws.gov.ag/wp-content/uploads/2019/03/Public-Holidays-Amendment-Act.pdf)
|
|
32
|
+
* [The Public Holidays (Amendment) Act, 2019](https://laws.gov.ag/wp-content/uploads/2020/02/No.-23-of-2019-Public-Holidays-Amendment-Act-2019.pdf)
|
|
33
|
+
* [No. 24 of 2006 Proclamation](https://laws.gov.ag/wp-content/uploads/2022/06/No.-24-of-2006-Proclamation-dated-29th-November2006-Appointing-the-11th-of-December2006.pdf)
|
|
34
|
+
* [No. 40 of 2012 Proclamation](https://laws.gov.ag/wp-content/uploads/2021/08/No.-40-of-2012-Proclamation-dated-the-27th-day-of-November-2012-Apponting-the-27th-of-December-2012-as-a-Public-Holiday-throughout-Antigua-and-Barbuda.pdf)
|
|
35
|
+
* <https://en.wikipedia.org/wiki/Public_holidays_in_Antigua_and_Barbuda>
|
|
36
|
+
|
|
37
|
+
Notes:
|
|
38
|
+
In accordance with No. 24 of 2006 Proclamation, National Heroes Day was celebrated on
|
|
39
|
+
Dec 11, 2006. In accordance with No. 40 of 2012 Proclamation, National Heroes Day was
|
|
40
|
+
celebrated on Dec 10, 2012.
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
country = "AG"
|
|
44
|
+
observed_label = "%s (observed)"
|
|
45
|
+
start_year = 1955
|
|
46
|
+
|
|
47
|
+
def __init__(self, *args, **kwargs):
|
|
48
|
+
ChristianHolidays.__init__(self)
|
|
49
|
+
InternationalHolidays.__init__(self)
|
|
50
|
+
StaticHolidays.__init__(self, AntiguaAndBarbudaStaticHolidays)
|
|
51
|
+
kwargs.setdefault("observed_rule", SUN_TO_NEXT_MON)
|
|
52
|
+
super().__init__(*args, **kwargs)
|
|
53
|
+
|
|
54
|
+
def _populate_public_holidays(self):
|
|
55
|
+
# New Year's Day.
|
|
56
|
+
self._add_observed(self._add_new_years_day("New Year's Day"))
|
|
57
|
+
|
|
58
|
+
# Good Friday.
|
|
59
|
+
self._add_good_friday("Good Friday")
|
|
60
|
+
|
|
61
|
+
# Easter Monday.
|
|
62
|
+
self._add_easter_monday("Easter Monday")
|
|
63
|
+
|
|
64
|
+
# Labour Day.
|
|
65
|
+
self._add_holiday_1st_mon_of_may("Labour Day")
|
|
66
|
+
|
|
67
|
+
# Whit Monday.
|
|
68
|
+
self._add_whit_monday("Whit Monday")
|
|
69
|
+
|
|
70
|
+
if self._year <= 2005:
|
|
71
|
+
# Caribbean Community (Caricom) Day.
|
|
72
|
+
self._add_holiday_1st_mon_of_jul("Caribbean Community (Caricom) Day")
|
|
73
|
+
|
|
74
|
+
# Carnival Monday.
|
|
75
|
+
self._add_holiday_1st_mon_of_aug("Carnival Monday")
|
|
76
|
+
|
|
77
|
+
if self._year >= 2006:
|
|
78
|
+
# Carnival Tuesday.
|
|
79
|
+
self._add_holiday_1_day_past_1st_mon_of_aug("Carnival Tuesday")
|
|
80
|
+
|
|
81
|
+
# Independence Day.
|
|
82
|
+
dt = self._add_holiday_nov_1("Independence Day")
|
|
83
|
+
if self._year >= 2005:
|
|
84
|
+
self._add_observed(dt, rule=SAT_SUN_TO_NEXT_MON)
|
|
85
|
+
|
|
86
|
+
if self._year >= 2005:
|
|
87
|
+
name = (
|
|
88
|
+
# Sir Vere Cornwall Bird Snr. Day.
|
|
89
|
+
"Sir Vere Cornwall Bird Snr. Day"
|
|
90
|
+
if self._year >= 2014
|
|
91
|
+
# National Heroes Day.
|
|
92
|
+
else "National Heroes Day"
|
|
93
|
+
)
|
|
94
|
+
if self._year == 2006:
|
|
95
|
+
self._add_holiday_dec_11(name)
|
|
96
|
+
elif self._year == 2012:
|
|
97
|
+
self._add_holiday_dec_10(name)
|
|
98
|
+
else:
|
|
99
|
+
dt = self._add_holiday_dec_9(name)
|
|
100
|
+
if self._year >= 2020:
|
|
101
|
+
self._add_observed(dt, rule=SAT_SUN_TO_NEXT_MON)
|
|
102
|
+
|
|
103
|
+
# Christmas Day.
|
|
104
|
+
self._add_observed(self._add_christmas_day("Christmas Day"), rule=SAT_SUN_TO_NEXT_MON_TUE)
|
|
105
|
+
|
|
106
|
+
# Boxing Day.
|
|
107
|
+
self._add_observed(self._add_christmas_day_two("Boxing Day"), rule=SAT_SUN_TO_NEXT_MON_TUE)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
class AG(AntiguaAndBarbuda):
|
|
111
|
+
pass
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
class ATG(AntiguaAndBarbuda):
|
|
115
|
+
pass
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
class AntiguaAndBarbudaStaticHolidays:
|
|
119
|
+
"""Antigua and Barbuda special holidays.
|
|
120
|
+
|
|
121
|
+
References:
|
|
122
|
+
* [August 3, 1993 Holiday](https://laws.gov.ag/wp-content/uploads/2021/08/No.-42-of-1993-Proclamation-dated-the-22nd-day-of-July-1993-appointing-Tuesday-the-3rd-day-of-August-1993-as-a-public-holiday-throughout-Antigua-and-Barbuda..pdf)
|
|
123
|
+
* [State Funeral of the late The Honourable Charlesworth T. Samuel](https://laws.gov.ag/wp-content/uploads/2022/12/No.-7-of-2008-Proclamation-dated-the-13th-day-of-February-2008-Appointing-Tuesday-19th-February-2008-as-a-Public-Holiday.pdf)
|
|
124
|
+
* [State Funeral of the late The Honourable Sir George Herbert Walter](https://laws.gov.ag/wp-content/uploads/2022/12/No.-9-of-2008-Proclamation-dated-the-13th-day-of-March-2008-Appointing-Tuesday-18th-March-2008-as-a-Public-Holiday.pdf)
|
|
125
|
+
* According to the Public Holidays (Amendment) Act, 2014, the day after the general
|
|
126
|
+
election is a holiday.
|
|
127
|
+
* [2018 Antiguan general election](https://en.wikipedia.org/wiki/2018_Antiguan_general_election)
|
|
128
|
+
* [2023 Antiguan general election](https://en.wikipedia.org/wiki/2023_Antiguan_general_election)
|
|
129
|
+
* [The Public Holidays (Amendment) Act, 2014](https://laws.gov.ag/wp-content/uploads/2019/03/Public-Holidays-Amendment-Act.pdf)
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
# Day after the General Election.
|
|
133
|
+
day_after_the_general_election = "Day after the General Election"
|
|
134
|
+
|
|
135
|
+
special_public_holidays = {
|
|
136
|
+
1993: (AUG, 3, "Public Holiday"),
|
|
137
|
+
2008: (
|
|
138
|
+
# State Funeral of the late The Honourable Charlesworth T. Samuel.
|
|
139
|
+
(FEB, 19, "State Funeral of the late The Honourable Charlesworth T. Samuel"),
|
|
140
|
+
# State Funeral of the late The Honourable Sir George Herbert Walter.
|
|
141
|
+
(MAR, 18, "State Funeral of the late The Honourable Sir George Herbert Walter"),
|
|
142
|
+
),
|
|
143
|
+
2018: (MAR, 22, day_after_the_general_election),
|
|
144
|
+
2023: (JAN, 19, day_after_the_general_election),
|
|
145
|
+
}
|