holidays 0.72__py3-none-any.whl → 0.73__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. holidays/calendars/hindu.py +147 -3
  2. holidays/countries/__init__.py +4 -0
  3. holidays/countries/andorra.py +130 -46
  4. holidays/countries/argentina.py +10 -0
  5. holidays/countries/cocos_islands.py +259 -0
  6. holidays/countries/grenada.py +143 -0
  7. holidays/countries/malaysia.py +0 -8
  8. holidays/countries/nepal.py +441 -0
  9. holidays/countries/philippines.py +2 -0
  10. holidays/countries/togo.py +182 -0
  11. holidays/countries/vatican_city.py +29 -31
  12. holidays/groups/christian.py +3 -3
  13. holidays/groups/hindu.py +121 -1
  14. holidays/locale/ca/LC_MESSAGES/AD.mo +0 -0
  15. holidays/locale/coa_CC/LC_MESSAGES/CC.mo +0 -0
  16. holidays/locale/en_CC/LC_MESSAGES/CC.mo +0 -0
  17. holidays/locale/en_GD/LC_MESSAGES/GD.mo +0 -0
  18. holidays/locale/en_US/LC_MESSAGES/AD.mo +0 -0
  19. holidays/locale/en_US/LC_MESSAGES/AR.mo +0 -0
  20. holidays/locale/en_US/LC_MESSAGES/CC.mo +0 -0
  21. holidays/locale/en_US/LC_MESSAGES/GD.mo +0 -0
  22. holidays/locale/en_US/LC_MESSAGES/TG.mo +0 -0
  23. holidays/locale/es/LC_MESSAGES/AR.mo +0 -0
  24. holidays/locale/fr/LC_MESSAGES/TG.mo +0 -0
  25. holidays/locale/uk/LC_MESSAGES/AD.mo +0 -0
  26. holidays/locale/uk/LC_MESSAGES/AR.mo +0 -0
  27. holidays/registry.py +4 -0
  28. holidays/version.py +1 -1
  29. {holidays-0.72.dist-info → holidays-0.73.dist-info}/METADATA +32 -4
  30. {holidays-0.72.dist-info → holidays-0.73.dist-info}/RECORD +34 -20
  31. {holidays-0.72.dist-info → holidays-0.73.dist-info}/WHEEL +1 -1
  32. {holidays-0.72.dist-info → holidays-0.73.dist-info}/licenses/CONTRIBUTORS +0 -0
  33. {holidays-0.72.dist-info → holidays-0.73.dist-info}/licenses/LICENSE +0 -0
  34. {holidays-0.72.dist-info → holidays-0.73.dist-info}/top_level.txt +0 -0
@@ -64,58 +64,56 @@ class VaticanCity(HolidayBase, ChristianHolidays, InternationalHolidays):
64
64
  tr("Anniversario della istituzione dello Stato della Città del Vaticano")
65
65
  )
66
66
 
67
- # Anniversary of the Election of the Holy Father.
68
- name_election = tr("Anniversario dell'Elezione del Santo Padre")
69
-
70
67
  # Name Day of the Holy Father.
71
68
  name_day = tr("Onomastico del Santo Padre")
72
69
 
73
- if self._year >= 2013:
70
+ if self._year >= 2025:
71
+ # Pope Leo XIV (Robert Francis Prevost).
72
+ # Name Day: Saint Robert Bellarmine Day (SEP 17).
73
+ self._add_holiday_sep_17(name_day)
74
+
75
+ if self._year == 2025:
76
+ # Pope Francis (cont.).
77
+ self._add_saint_georges_day(name_day)
78
+ elif self._year >= 2013:
74
79
  # Pope Francis (Jorge Mario Bergoglio).
75
80
  # Name Day: Saint George's Day (APR 23).
76
- self._add_holiday_mar_13(name_election)
77
81
  self._add_saint_georges_day(name_day)
78
- elif self._year >= 2005:
82
+ elif self._year >= 2006:
79
83
  # Pope Benedict XVI (Josef Aloisius Ratzinger).
80
84
  # Name Day: Saint Joseph's Day (MAR 19).
81
- self._add_holiday_apr_19(name_election)
82
85
  self._add_saint_josephs_day(name_day)
83
- elif self._year >= 1978:
86
+ elif 1978 <= self._year <= 2004:
84
87
  # Pope John Paul II (Karol Józef Wojtyła).
85
88
  # Name Day: Saint Charles Borromeo Day (NOV 4).
86
- self._add_holiday_oct_16(name_election)
87
89
  self._add_holiday_nov_4(name_day)
88
90
 
89
- if self._year == 1978:
90
- # Pope John Paul I (Albino Luciani).
91
- # Name Day: Saint Albinus of Angers (MAR 1)?
92
- self._add_holiday_aug_26(name_election)
91
+ # Anniversary of the Election of the Holy Father.
92
+ name_election = tr("Anniversario dell'Elezione del Santo Padre")
93
93
 
94
- # Pope Paul VI (cont.).
95
- self._add_holiday_jun_21(name_election)
96
- elif self._year >= 1963:
94
+ if self._year >= 2026:
95
+ # Pope Leo XIV (Robert Francis Prevost).
96
+ self._add_holiday_may_8(name_election)
97
+ elif self._year >= 2014:
98
+ # Pope Francis (Jorge Mario Bergoglio).
99
+ self._add_holiday_mar_13(name_election)
100
+ elif 2006 <= self._year <= 2012:
101
+ # Pope Benedict XVI (Josef Aloisius Ratzinger).
102
+ self._add_holiday_apr_19(name_election)
103
+ elif 1979 <= self._year <= 2004:
104
+ # Pope John Paul II (Karol Józef Wojtyła).
105
+ self._add_holiday_oct_16(name_election)
106
+ elif 1964 <= self._year <= 1978:
97
107
  # Pope Paul VI (Giovanni Battista Enrico Antonio Maria Montini).
98
- # Name Day: Saint John's Day (JUN 24)?
99
108
  self._add_holiday_jun_21(name_election)
100
- elif self._year >= 1958:
109
+ elif 1959 <= self._year <= 1962:
101
110
  # Pope John XXIII (Angelo Giuseppe Roncalli).
102
- # Name Day: Saint Angelus of Jerusalem (MAY 5)?
103
111
  self._add_holiday_oct_28(name_election)
104
-
105
- if self._year == 1958:
106
- # Pope Pius XII (cont.).
107
- self._add_holiday_mar_2(name_election)
108
- elif self._year >= 1939:
112
+ elif 1940 <= self._year <= 1958:
109
113
  # Pope Pius XII (Eugenio Maria Giuseppe Giovanni Pacelli).
110
- # Name Day: Saint Eugene (JUN 2)?
111
114
  self._add_holiday_mar_2(name_election)
112
-
113
- if self._year == 1939:
114
- # Pope Pius XI (cont.).
115
- self._add_holiday_feb_6(name_election)
116
- else:
115
+ elif self._year <= 1939:
117
116
  # Pope Pius XI (Achille Ambrogio Damiano Ratti).
118
- # Name Day: Saint Nereus and Achilleus (MAY 12)?
119
117
  self._add_holiday_feb_6(name_election)
120
118
 
121
119
  # Saint Joseph's Day.
@@ -197,7 +197,7 @@ class ChristianHolidays:
197
197
 
198
198
  def _add_carnival_tuesday(self, name) -> date:
199
199
  """
200
- Add Carnival Monday (47 days before Easter Sunday).
200
+ Add Carnival Tuesday (47 days before Easter Sunday).
201
201
 
202
202
  Carnival is a Catholic Christian festive season that occurs before
203
203
  the liturgical season of Lent.
@@ -373,7 +373,7 @@ class ChristianHolidays:
373
373
 
374
374
  Add Day Of Rejoicing ("Radonitsa"), in the Russian Orthodox Church is
375
375
  a commemoration of the departed observed on the second Tuesday of
376
- Pascha (Easter).In Ukrainian tradition it is called Provody.
376
+ Pascha (Easter). In Ukrainian tradition it is called Provody.
377
377
  https://en.wikipedia.org/wiki/Radonitsa
378
378
  """
379
379
  return self._add_holiday(name, _timedelta(self._easter_sunday, +9))
@@ -421,7 +421,7 @@ class ChristianHolidays:
421
421
 
422
422
  def _add_saints_peter_and_paul_day(self, name) -> date:
423
423
  """
424
- Feast of Saints Peter and Paul (June 29th).
424
+ Add Feast of Saints Peter and Paul (June 29th).
425
425
 
426
426
  A liturgical feast in honor of the martyrdom in Rome of the apostles
427
427
  Saint Peter and Saint Paul, which is observed on 29 June.
holidays/groups/hindu.py CHANGED
@@ -59,6 +59,18 @@ class HinduCalendarHolidays(EasternCalendarHolidays):
59
59
 
60
60
  return added_dates
61
61
 
62
+ def _add_bhai_dooj(self, name) -> Optional[date]:
63
+ """
64
+ Add Bhai Dooj.
65
+
66
+ Bhai Dooj, also known as Bhai Tika or Bhaiya Dooj, is a Hindu festival celebrating the bond
67
+ between brothers and sisters. It is observed two days after Diwali on the second lunar day
68
+ of the Shukla Paksha in the Hindu month of Kartika.
69
+ """
70
+ return self._add_hindu_calendar_holiday(
71
+ name, self._hindu_calendar.govardhan_puja_date(self._year), days_delta=+1
72
+ )
73
+
62
74
  def _add_buddha_purnima(self, name) -> Optional[date]:
63
75
  """
64
76
  Add Buddha Purnima.
@@ -126,11 +138,21 @@ class HinduCalendarHolidays(EasternCalendarHolidays):
126
138
  name, self._hindu_calendar.ganesh_chaturthi_date(self._year)
127
139
  )
128
140
 
141
+ def _add_gau_krida(self, name) -> Optional[date]:
142
+ """
143
+ Add Gau Krida.
144
+
145
+ Gau Krida, is celebrated the day after Diwali to honor cows.
146
+ """
147
+ return self._add_hindu_calendar_holiday(
148
+ name, self._hindu_calendar.govardhan_puja_date(self._year), days_delta=-1
149
+ )
150
+
129
151
  def _add_govardhan_puja(self, name) -> Optional[date]:
130
152
  """
131
153
  Add Govardhan Puja.
132
154
 
133
- Govardhan Puja, also known as Annakut, is celebrated the day after Diwali
155
+ Govardhan Puja, also known as Annakut, is celebrated after Diwali
134
156
  to honor Lord Krishna. It falls on the first lunar day of the Hindu month of Kartika.
135
157
  https://en.wikipedia.org/wiki/Govardhan_Puja
136
158
  """
@@ -175,6 +197,32 @@ class HinduCalendarHolidays(EasternCalendarHolidays):
175
197
  name, self._hindu_calendar.guru_nanak_jayanti_date(self._year)
176
198
  )
177
199
 
200
+ def _add_gyalpo_losar(self, name) -> Optional[date]:
201
+ """
202
+ Add Gyalpo Losar.
203
+
204
+ Gyalpo Losar marks the Tibetan New Year and is widely celebrated by the
205
+ Tibetan and Sherpa communities in Nepal. It falls on the first day of the
206
+ Tibetan lunar calendar, typically in February or March.
207
+ https://en.wikipedia.org/wiki/Gyalpo_Losar
208
+ """
209
+ return self._add_hindu_calendar_holiday(
210
+ name, self._hindu_calendar.gyalpo_losar_date(self._year)
211
+ )
212
+
213
+ def _add_nepal_holi(self, name) -> Optional[date]:
214
+ """
215
+ Add Holi Festival for Nepal (Mountain & Hilly).
216
+
217
+ Holi, known as the Festival of Colors, is a Hindu festival that marks
218
+ the arrival of spring. It is celebrated on the full moon day of the
219
+ Hindu month of Phalguna (February/March).
220
+ https://en.wikipedia.org/wiki/Holi
221
+ """
222
+ return self._add_hindu_calendar_holiday(
223
+ name, self._hindu_calendar.holi_date(self._year), days_delta=-1
224
+ )
225
+
178
226
  def _add_holi(self, name) -> Optional[date]:
179
227
  """
180
228
  Add Holi Festival.
@@ -198,6 +246,30 @@ class HinduCalendarHolidays(EasternCalendarHolidays):
198
246
  name, self._hindu_calendar.janmashtami_date(self._year)
199
247
  )
200
248
 
249
+ def _add_maha_saptami(self, name) -> Optional[date]:
250
+ """
251
+ Add Maha Saptami.
252
+
253
+ Maha Saptami is the seventh day of Navratri, dedicated to Goddess Durga.
254
+ It is observed in Ashvin (September-October).
255
+ https://en.wikipedia.org/wiki/Navaratri
256
+ """
257
+ return self._add_hindu_calendar_holiday(
258
+ name, self._hindu_calendar.maha_ashtami_date(self._year), days_delta=-1
259
+ )
260
+
261
+ def _add_maha_ashtami(self, name) -> Optional[date]:
262
+ """
263
+ Add Maha Ashtami.
264
+
265
+ Maha Ashtami is the eighth day of Navratri, dedicated to Goddess Durga.
266
+ It is observed in Ashvin (September-October).
267
+ https://en.wikipedia.org/wiki/Navaratri
268
+ """
269
+ return self._add_hindu_calendar_holiday(
270
+ name, self._hindu_calendar.maha_ashtami_date(self._year)
271
+ )
272
+
201
273
  def _add_maha_navami(self, name) -> Optional[date]:
202
274
  """
203
275
  Add Maha Navami.
@@ -256,6 +328,29 @@ class HinduCalendarHolidays(EasternCalendarHolidays):
256
328
  """
257
329
  return self._add_hindu_calendar_holiday(name, self._hindu_calendar.onam_date(self._year))
258
330
 
331
+ def _add_papankusha_ekadashi(self, name) -> Optional[date]:
332
+ """
333
+ Add Papankusha Ekadashi.
334
+
335
+ Papankusha Ekadashi is a Hindu festival which occurs on eleventh day on month of
336
+ Ashwin (September-October).
337
+ https://en.wikipedia.org/wiki/Ekadashi
338
+ """
339
+ return self._add_hindu_calendar_holiday(
340
+ name, self._hindu_calendar.dussehra_date(self._year), days_delta=+1
341
+ )
342
+
343
+ def _add_papankusha_duwadashi(self, name) -> Optional[date]:
344
+ """
345
+ Add Papankusha Duwadashi.
346
+
347
+ Papankusha Duwadashi is a Hindu festival which occurs next day of Papankusha Ekadashi.
348
+ https://en.wikipedia.org/wiki/Ekadashi
349
+ """
350
+ return self._add_hindu_calendar_holiday(
351
+ name, self._hindu_calendar.dussehra_date(self._year), days_delta=+2
352
+ )
353
+
259
354
  def _add_pongal(self, name) -> Optional[date]:
260
355
  """
261
356
  Add Pongal.
@@ -306,6 +401,31 @@ class HinduCalendarHolidays(EasternCalendarHolidays):
306
401
  name, self._hindu_calendar.sharad_navratri_date(self._year)
307
402
  )
308
403
 
404
+ def _add_sonam_losar(self, name) -> Optional[date]:
405
+ """
406
+ Add Sonam Losar.
407
+
408
+ Sonam Losar is the New Year festival celebrated by the Tamang community
409
+ in Nepal. It follows the Tibetan lunar calendar and usually falls in
410
+ January or February.
411
+ https://en.wikipedia.org/wiki/Sonam_Lhosar
412
+ """
413
+ return self._add_hindu_calendar_holiday(
414
+ name, self._hindu_calendar.sonam_losar_date(self._year)
415
+ )
416
+
417
+ def _add_tamu_losar(self, name) -> Optional[date]:
418
+ """
419
+ Add Tamu Losar.
420
+
421
+ Tamu Losar marks the New Year festival of the Gurung community in Nepal.
422
+ It is traditionally celebrated on December 30th each year.
423
+ https://en.wikipedia.org/wiki/Tamu_Lhosar
424
+ """
425
+ return self._add_hindu_calendar_holiday(
426
+ name, self._hindu_calendar.tamu_losar_date(self._year)
427
+ )
428
+
309
429
  def _add_thaipusam(self, name) -> Optional[date]:
310
430
  """
311
431
  Add Thaipusam.
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
holidays/registry.py CHANGED
@@ -54,6 +54,7 @@ COUNTRIES: RegistryDict = {
54
54
  "chad": ("Chad", "TD", "TCD"),
55
55
  "chile": ("Chile", "CL", "CHL"),
56
56
  "china": ("China", "CN", "CHN"),
57
+ "cocos_islands": ("CocosIslands", "CC", "CCK"),
57
58
  "colombia": ("Colombia", "CO", "COL"),
58
59
  "congo": ("Congo", "CG", "COG"),
59
60
  "costa_rica": ("CostaRica", "CR", "CRI"),
@@ -83,6 +84,7 @@ COUNTRIES: RegistryDict = {
83
84
  "ghana": ("Ghana", "GH", "GHA"),
84
85
  "greece": ("Greece", "GR", "GRC"),
85
86
  "greenland": ("Greenland", "GL", "GRL"),
87
+ "grenada": ("Grenada", "GD", "GRD"),
86
88
  "guam": ("Guam", "GU", "GUM", "HolidaysGU"),
87
89
  "guatemala": ("Guatemala", "GT", "GUA"),
88
90
  "guernsey": ("Guernsey", "GG", "GGY"),
@@ -128,6 +130,7 @@ COUNTRIES: RegistryDict = {
128
130
  "morocco": ("Morocco", "MA", "MOR"),
129
131
  "mozambique": ("Mozambique", "MZ", "MOZ"),
130
132
  "namibia": ("Namibia", "NA", "NAM"),
133
+ "nepal": ("Nepal", "NP", "NPL"),
131
134
  "netherlands": ("Netherlands", "NL", "NLD"),
132
135
  "new_zealand": ("NewZealand", "NZ", "NZL"),
133
136
  "nicaragua": ("Nicaragua", "NI", "NIC"),
@@ -172,6 +175,7 @@ COUNTRIES: RegistryDict = {
172
175
  "tanzania": ("Tanzania", "TZ", "TZA"),
173
176
  "thailand": ("Thailand", "TH", "THA"),
174
177
  "timor_leste": ("TimorLeste", "TL", "TLS"),
178
+ "togo": ("Togo", "TG", "TGO"),
175
179
  "tonga": ("Tonga", "TO", "TON"),
176
180
  "trinidad_and_tobago": ("TrinidadAndTobago", "TT", "TTO"),
177
181
  "tunisia": ("Tunisia", "TN", "TUN"),
holidays/version.py CHANGED
@@ -10,4 +10,4 @@
10
10
  # Website: https://github.com/vacanza/holidays
11
11
  # License: MIT (see LICENSE file)
12
12
 
13
- __version__ = "0.72"
13
+ __version__ = "0.73"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: holidays
3
- Version: 0.72
3
+ Version: 0.73
4
4
  Summary: Open World Holidays Framework
5
5
  Author: Vacanza Team
6
6
  Maintainer: Arkadii Yakovets, Panpakorn Siripanich, Serhii Murza
@@ -142,7 +142,7 @@ and detailed information.
142
142
 
143
143
  ## Available Countries
144
144
 
145
- We currently support 171 country codes. The standard way to refer to a country is by using its [ISO
145
+ We currently support 175 country codes. The standard way to refer to a country is by using its [ISO
146
146
  3166-1 alpha-2 code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes), the same used
147
147
  for domain names, and for a subdivision its [ISO 3166-2
148
148
  code](https://en.wikipedia.org/wiki/ISO_3166-2). Some countries have common or foreign names or
@@ -215,8 +215,8 @@ any) in brackets, available languages and additional holiday categories. All cou
215
215
  <td>Andorra</td>
216
216
  <td>AD</td>
217
217
  <td>Parishes: 02 (Canillo), 03 (Encamp), 04 (La Massana), 05 (Ordino), 06 (Sant Julià de Lòria), 07 (Andorra la Vella), 08 (Escaldes-Engordany)</td>
218
- <td></td>
219
- <td></td>
218
+ <td><strong>ca</strong>, en_US, uk</td>
219
+ <td>GOVERNMENT</td>
220
220
  </tr>
221
221
  <tr>
222
222
  <td>Angola</td>
@@ -422,6 +422,13 @@ any) in brackets, available languages and additional holiday categories. All cou
422
422
  <td>HALF_DAY</td>
423
423
  </tr>
424
424
  <tr>
425
+ <td>Cocos Islands</td>
426
+ <td>CC</td>
427
+ <td></td>
428
+ <td>coa_CC, <strong>en_CC</strong>, en_US</td>
429
+ <td></td>
430
+ </tr>
431
+ <tr>
425
432
  <td>Colombia</td>
426
433
  <td>CO</td>
427
434
  <td></td>
@@ -618,6 +625,13 @@ any) in brackets, available languages and additional holiday categories. All cou
618
625
  <td>OPTIONAL</td>
619
626
  </tr>
620
627
  <tr>
628
+ <td>Grenada</td>
629
+ <td>GD</td>
630
+ <td></td>
631
+ <td><strong>en_GD</strong>, en_US</td>
632
+ <td></td>
633
+ </tr>
634
+ <tr>
621
635
  <td>Guam</td>
622
636
  <td>GU</td>
623
637
  <td>Can also be loaded as country US, subdivision GU</td>
@@ -941,6 +955,13 @@ any) in brackets, available languages and additional holiday categories. All cou
941
955
  <td></td>
942
956
  </tr>
943
957
  <tr>
958
+ <td>Nepal</td>
959
+ <td>NP</td>
960
+ <td></td>
961
+ <td></td>
962
+ <td>WORKDAY</td>
963
+ </tr>
964
+ <tr>
944
965
  <td>Netherlands</td>
945
966
  <td>NL</td>
946
967
  <td></td>
@@ -1249,6 +1270,13 @@ any) in brackets, available languages and additional holiday categories. All cou
1249
1270
  <td>GOVERNMENT, WORKDAY</td>
1250
1271
  </tr>
1251
1272
  <tr>
1273
+ <td>Togo</td>
1274
+ <td>TG</td>
1275
+ <td></td>
1276
+ <td>en_US, <strong>fr</strong></td>
1277
+ <td>WORKDAY</td>
1278
+ </tr>
1279
+ <tr>
1252
1280
  <td>Tonga</td>
1253
1281
  <td>TO</td>
1254
1282
  <td></td>