Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/vacanza/holidays
/ functions
Functions
7,727 in github.com/vacanza/holidays
⨍
Functions
7,727
◇
Types & classes
1,434
↳
Endpoints
6
↓ 763 callers
Method
_add_observed
(self, dt: date, **kwargs)
holidays/countries/tonga.py:94
↓ 680 callers
Method
assertLocalizedHolidays
Assert localized holidays match expected names.
tests/common.py:629
↓ 274 callers
Method
_move_holiday
( self, dt: date, *, rule: ObservedRule | None = None, force_observed:
holidays/countries/australia.py:135
↓ 247 callers
Method
_add_new_years_day
Add New Year's Day (January 1st). New Year's Day is a festival observed in most of the world on 1 January, the first day of
holidays/groups/international.py:143
↓ 243 callers
Method
_add_christmas_day
Add Christmas Day. Christmas is an annual festival commemorating the birth of Jesus Christ. https://en.wikipedia.org
holidays/groups/christian.py:224
↓ 198 callers
Method
_add_good_friday
Add Good Friday (2 days before Easter Sunday). Good Friday is a Christian holiday commemorating the crucifixion of Jesus and
holidays/groups/christian.py:344
↓ 189 callers
Method
_add_labor_day
Add International Workers' Day (May 1st) International Workers' Day, also known as Labour Day, is a celebration of labourers
holidays/groups/international.py:116
↓ 172 callers
Method
_add_easter_monday
Add Easter Monday (1 day after Easter Sunday). Easter Monday refers to the day after Easter Sunday in either the Eastern or
holidays/groups/christian.py:275
↓ 154 callers
Method
_add_christmas_day_two
Add Christmas Day 2. A holiday celebrated after Christmas Day, also known as Boxing Day. https://en.wikipedia.org/wiki/Boxin
holidays/groups/christian.py:234
↓ 154 callers
Function
_timedelta
Return date that is `days` days after (days > 0) or before (days < 0) specified date.
holidays/calendars/gregorian.py:37
↓ 152 callers
Method
_add_holiday
(self, name, *args)
holidays/financial/hong_kong_stock_exchange.py:38
↓ 140 callers
Method
get
Retrieve the holiday name(s) for a given date. If the date is a holiday, returns the holiday name as a string. If multiple holidays f
holidays/holiday_base.py:1010
↓ 106 callers
Method
update
Update the object, overwriting existing dates. Args: args: Either another dictionary object where keys are dates
holidays/holiday_base.py:1335
↓ 83 callers
Method
_add_eid_al_adha_day
Add Eid al-Adha Day (10th day of 12th month). Feast of the Sacrifice. It honours the willingness of Ibrahim (Abraham) to sac
holidays/groups/islamic.py:113
↓ 81 callers
Method
_add_eid_al_fitr_day
Add Eid al-Fitr Day (1st day of 10th month). Holiday of Breaking the Fast. The religious holiday is celebrated by Muslims wo
holidays/groups/islamic.py:156
↓ 79 callers
Method
_add_all_saints_day
Add All Saints' Day (November 1st). Also known as All Hallows' Day, the Feast of All Saints, the Feast of All Hallows, the S
holidays/groups/christian.py:111
↓ 77 callers
Method
_add_whit_monday
Add Whit Monday (50 days after Easter Sunday). Whit Monday or Pentecost Monday, also known as Monday of the Holy Spirit, is
holidays/groups/christian.py:498
↓ 73 callers
Method
_add_easter_sunday
Add Easter Sunday. Easter, also called Pascha or Resurrection Sunday is a Christian festival and cultural holiday commemorat
holidays/groups/christian.py:286
↓ 70 callers
Method
_add_assumption_of_mary_day
Add Assumption Of Mary (August 15th). The Feast of the Assumption of Mary, or simply The Assumption marks the occasion of th
holidays/groups/christian.py:162
↓ 67 callers
Method
append
Alias for [update()][holidays.holiday_base.HolidayBase.update] to mimic list type. Args: args: Holiday data to ad
holidays/holiday_base.py:993
↓ 53 callers
Method
_add_new_years_day_two
Add New Year's Day Two (January 2nd). New Year's Day is a festival observed in most of the world on 1 January, the first day
holidays/groups/international.py:153
↓ 52 callers
Method
_add_ascension_thursday
Add Ascension Thursday (39 days after the Easter Sunday). The Solemnity of the Ascension of Jesus Christ, also called Ascension
holidays/groups/christian.py:133
↓ 50 callers
Method
_add_mawlid_day
Add Mawlid Day (12th day of 3rd month). Mawlid is the observance of the birthday of the Islamic prophet Muhammad. ht
holidays/groups/islamic.py:353
↓ 48 callers
Method
_add_christmas_eve
Add Christmas Eve. Christmas Eve is the evening or entire day before Christmas Day, the festival commemorating the birth of
holidays/groups/christian.py:253
↓ 48 callers
Method
get_named
Find all holiday dates matching a given name. The search by default is case-insensitive and includes partial matches. Args:
holidays/holiday_base.py:1052
↓ 47 callers
Method
_add_corpus_christi_day
Add Feast Of Corpus Christi (60 days after Easter Sunday). The Feast of Corpus Christi, also known as the Solemnity of the Most
holidays/groups/christian.py:263
↓ 47 callers
Method
_add_holy_thursday
Add Holy Thursday (3 days before Easter Sunday). Holy Thursday or Maundy Thursday is the day during Holy Week that commemora
holidays/groups/christian.py:364
↓ 46 callers
Method
_add_epiphany_day
Add Epiphany Day. Epiphany, also known as Theophany in Eastern Christian traditions, is a Christian feast day that celebrate
holidays/groups/christian.py:306
↓ 45 callers
Method
_add_immaculate_conception_day
Add Immaculate Conception Day (December 8th). https://en.wikipedia.org/wiki/Immaculate_Conception
holidays/groups/christian.py:375
↓ 42 callers
Method
_add_eid_al_adha_day_two
Add Eid al-Adha Day Two (11th day of 12th month). https://en.wikipedia.org/wiki/Eid_al-Adha
holidays/groups/islamic.py:126
↓ 39 callers
Method
_add_eid_al_fitr_day_two
Add Eid al-Fitr Day Two (2nd day of 10th month). https://en.wikipedia.org/wiki/Eid_al-Fitr
holidays/groups/islamic.py:169
↓ 39 callers
Method
_add_islamic_calendar_holiday_set
Add lunar calendar holiday. Appends customizable estimation label at the end of holiday name if holiday date is an estimatio
holidays/groups/islamic.py:282
↓ 38 callers
Method
_add_hindu_calendar_holiday
Add Hindu calendar holiday. Adds customizable estimation label to holiday name if holiday date is an estimation.
holidays/groups/hindu.py:30
↓ 36 callers
Method
_add_holy_saturday
Add Holy Saturday (1 day before Easter Sunday). Great and Holy Saturday is a day between Good Friday and Easter Sunday. http
holidays/groups/christian.py:355
↓ 35 callers
Method
_add_new_years_eve
Add New Year's Eve (December 31st). In the Gregorian calendar, New Year's Eve, also known as Old Year's Day or Saint Sylvest
holidays/groups/international.py:183
↓ 35 callers
Method
_add_womens_day
Add International Women's Day (March 8th). International Women's Day is a global holiday celebrated as a focal point in the
holidays/groups/international.py:194
↓ 34 callers
Method
_format_holiday_name
(self, label: str, holiday_name: str)
holidays/holiday_base.py:895
↓ 32 callers
Method
is_weekend
Check if the given date's week day is a weekend day. Args: key: The date to check. Returns:
holidays/holiday_base.py:1205
↓ 30 callers
Method
_add_saint_josephs_day
Add Saint Joseph's Day (March 19th). Saint Joseph's Day, also called the Feast of Saint Joseph or the Solemnity of Saint Jos
holidays/groups/christian.py:456
↓ 30 callers
Method
_get_holiday
(self, holiday: str, year: int)
holidays/calendars/hindu.py:1539
↓ 29 callers
Method
_add_islamic_new_year_day
Add Islamic New Year Day (1st day of 1st month). The Islamic New Year, also called the Hijri New Year, is the day that marks
holidays/groups/islamic.py:298
↓ 28 callers
Method
_add_whit_sunday
Add Whit Sunday (49 days after Easter Sunday). Whit Sunday, also called Pentecost, is a holiday which commemorates the desce
holidays/groups/christian.py:509
↓ 28 callers
Method
_is_sunday
(self, *args)
holidays/holiday_base.py:919
↓ 27 callers
Method
_assertHinduHolidayHelper
Once HinduHolidays properly supports full Hindu calendar range, update the following section in your code to the following format:
tests/countries/test_india.py:176
↓ 27 callers
Function
country_holidays
Return a new dictionary-like [`HolidayBase`][holidays.holiday_base.HolidayBase] object. Include public holidays for the country matching `country
holidays/utils.py:34
↓ 26 callers
Method
_add_eid_al_fitr_day_three
Add Eid al-Fitr Day Three (3rd day of 10th month). https://en.wikipedia.org/wiki/Eid_al-Fitr
holidays/groups/islamic.py:179
↓ 26 callers
Method
_get_holiday
Yield holiday dates for the specified Gregorian year. The method combines dates from the underlying calendar with country-specific co
holidays/calendars/islamic.py:4140
↓ 26 callers
Method
argv
(*args)
tests/test_generate_ics.py:36
↓ 25 callers
Method
_add_eid_al_adha_day_three
Add Eid al-Adha Day Three (12th day of 12th month). https://en.wikipedia.org/wiki/Eid_al-Adha
holidays/groups/islamic.py:136
↓ 25 callers
Function
_get_nth_week_of_month
Return the Monday at the start of week ``n`` for ``month`` in ``year``. Weeks span Monday through Sunday. If ``n`` is greater than ``0``, th
holidays/calendars/gregorian.py:64
↓ 25 callers
Method
assertWorkingDay
Assert each date is a working day.
tests/common.py:796
↓ 24 callers
Method
get_nth_working_day
Find the n-th working day from a given date. Moves forward if n is positive, or backward if n is negative. If n is 0, returns the giv
holidays/holiday_base.py:1156
↓ 22 callers
Method
_add_remembrance_day
Add Remembrance Day / Armistice Day (Nov 11th) It's a memorial day since the end of the First World War in 1919 to honour ar
holidays/groups/international.py:173
↓ 22 callers
Method
generate
Generate iCalendar data. Args: return_bytes: If `True`, return bytes instead of string. Returns:
holidays/ical.py:183
↓ 22 callers
Method
get_list
Retrieve all holiday names for a given date. Args: key: The date expressed in one of the following types:
holidays/holiday_base.py:1035
↓ 20 callers
Method
_add_carnival_tuesday
Add Carnival Tuesday (47 days before Easter Sunday). Carnival is a Catholic Christian festive season that occurs before the
holidays/groups/christian.py:214
↓ 20 callers
Method
_add_holiday
Add a holiday.
holidays/holiday_base.py:807
↓ 20 callers
Method
pop_named
Remove all holidays matching the given name. This method removes all dates associated with a holiday name, so they are no longer cons
holidays/holiday_base.py:1261
↓ 19 callers
Method
_add_chinese_new_years_day
Add Chinese New Year's Day (first day of the first lunar month). Chinese New Year is the festival that celebrates the beginning of
holidays/groups/chinese.py:125
↓ 19 callers
Method
_assertVariableDays
(self, year: int, subdiv_holidays_mapping: dict)
tests/countries/test_spain.py:26
↓ 19 callers
Method
_populate_observed
(self, dts: set[date])
holidays/countries/japan.py:58
↓ 18 callers
Method
_add_arafah_day
Add Day of Arafah (9th day of 12th month). At dawn of this day, Muslim pilgrims will make their way from Mina to a nearby hi
holidays/groups/islamic.py:76
↓ 18 callers
Method
_add_world_war_two_victory_day
Add Day of Victory in World War II in Europe (May 8). https://en.wikipedia.org/wiki/Victory_in_Europe_Day Some Eastern Europ
holidays/groups/international.py:206
↓ 18 callers
Method
_is_weekend
Returns True if date's week day is a weekend day. Returns False otherwise.
holidays/holiday_base.py:929
↓ 18 callers
Method
pop
Remove a holiday for a given date and return its name. If the specified date is a holiday, it will be removed, and its name will be r
holidays/holiday_base.py:1230
↓ 17 callers
Method
_add_all_souls_day
Add All Souls' Day (November 2nd). All Souls' Day is a day of prayer and remembrance for the faithful departed, observed by
holidays/groups/christian.py:121
↓ 17 callers
Method
_add_anzac_day
Add Anzac Day (April 25th) Anzac Day is a national day of remembrance in Australia and New Zealand that broadly commemorates
holidays/groups/international.py:43
↓ 17 callers
Method
_add_chinese_calendar_holiday
Add Chinese calendar holiday. Adds customizable estimation label to holiday name if holiday date is an estimation.
holidays/groups/chinese.py:73
↓ 17 callers
Method
_add_isra_and_miraj_day
Add Isra' and Mi'raj Day (27th day of 7th month). The Prophet's Ascension. https://en.wikipedia.org/wiki/Isra'_and_Mi'raj
holidays/groups/islamic.py:312
↓ 17 callers
Method
_assert_invalid_language_code
(self, language_name)
tests/test_ical.py:99
↓ 17 callers
Method
get_closest_holiday
Find the closest holiday relative to a given date. If `direction` is "forward", returns the next holiday after `target_date`. If `dir
holidays/holiday_base.py:1113
↓ 16 callers
Method
_add_saint_johns_day
Add Saint John's Day (June 24th). The Nativity of John the Baptist is a Christian feast day celebrating the birth of John th
holidays/groups/christian.py:446
↓ 16 callers
Method
validate_code
(self)
holidays/generate_ics.py:83
↓ 15 callers
Method
_add_columbus_day
Add Columbus Day (October 12th) Columbus Day is a national holiday which officially celebrates the anniversary of Christophe
holidays/groups/international.py:81
↓ 15 callers
Method
_add_observed
(self, dt: date, **kwargs)
holidays/countries/angola.py:64
↓ 15 callers
Method
_populate
(self, year: int)
tests/test_holiday_base.py:55
↓ 15 callers
Method
_test_unofficial_holiday
(self, name, since, end_year=None)
tests/countries/test_finland.py:254
↓ 14 callers
Method
__keytransform__
Convert various date-like formats to `datetime.date`. The method supports the following input types: * `datetime.date` * `da
holidays/holiday_base.py:595
↓ 14 callers
Method
_add_ashura_day
Add Ashura Day (10th day of 1st month). Ashura is a day of commemoration in Islam. It occurs annually on the 10th of Muharra
holidays/groups/islamic.py:89
↓ 14 callers
Method
_add_labor_day_two
Add International Workers' Day Two (May 2nd) https://en.wikipedia.org/wiki/International_Workers'_Day
holidays/groups/international.py:127
↓ 14 callers
Method
_add_saints_peter_and_paul_day
Add Feast of Saints Peter and Paul (June 29th). A liturgical feast in honor of the martyrdom in Rome of the apostles Saint P
holidays/groups/christian.py:488
↓ 14 callers
Method
is_working_day
Check if the given date is considered a working day. Args: key: The date to check. Returns:
holidays/holiday_base.py:1217
↓ 13 callers
Method
_add_carnival_monday
Add Carnival Monday (48 days before Easter Sunday). Carnival is a Catholic Christian festive season that occurs before the l
holidays/groups/christian.py:204
↓ 13 callers
Method
_add_childrens_day
Add International Children's Day (June 1). In 1925, International Children's Day was first proclaimed in Geneva during the W
holidays/groups/international.py:58
↓ 13 callers
Method
_add_mandaean_holiday
Add a Mandaean holiday.
holidays/groups/mandaean.py:39
↓ 13 callers
Method
_get_start_date
Calculate the start date of that particular Thai Lunar Calendar Year. This usually falls in November or December of the previous Gregorian
holidays/calendars/thai.py:298
↓ 13 callers
Method
_move_holiday_forced
Unconditionally move a holiday without appending an observed label. Convenience wrapper around `_move_holiday()` with `force_observed=True`
holidays/observed_holiday_base.py:365
↓ 12 callers
Method
_add_nuzul_al_quran_day
Add Nuzul Al Quran Day (17th day of 9th month). Nuzul Al Quran is a Muslim festival to remember the day when Prophet Muhamma
holidays/groups/islamic.py:387
↓ 12 callers
Method
_add_persian_calendar_holiday
Add Persian calendar holiday.
holidays/groups/persian.py:158
↓ 12 callers
Method
_add_thanksgiving_day
Adds Thanksgiving Day / Armistice Day. In 1921, Thanksgiving Day was moved to "Armistice Day" (1st Monday in the week of Nov 11). "Re
holidays/countries/canada.py:176
↓ 12 callers
Method
_add_tibetan_calendar_holiday
Add Tibetan calendar holiday. Adds customizable estimation label to holiday name if holiday date is an estimation.
holidays/groups/tibetan.py:28
↓ 12 callers
Method
run
(self)
scripts/archive_links.py:392
↓ 11 callers
Method
_add_multiday_holiday
Add a multi-day holiday. Args: start_date: First day of the holiday. duration_days:
holidays/holiday_base.py:821
↓ 11 callers
Method
_add_sinhala_calendar_holiday
Add Sinhala calendar holiday. Adds customizable estimation label to holiday name if holiday date is an estimation.
holidays/groups/sinhala.py:38
↓ 11 callers
Method
_add_thai_calendar_holiday
Add Thai calendar holiday. If the result from `_ThaiLunisolar` is none then no holidays added.
holidays/groups/thai.py:177
↓ 11 callers
Method
_get_holiday
(self, holiday: str, year: int)
holidays/calendars/sinhala.py:374
↓ 11 callers
Method
_is_weekday
Returns True if date's week day is not a weekend day. Returns False otherwise.
holidays/holiday_base.py:922
↓ 11 callers
Method
_parse_arguments
( self, args, *, expand_items=True, instance_name="holidays", raise_on_empty=True )
tests/common.py:365
↓ 11 callers
Function
financial_holidays
Return a new dictionary-like [`HolidayBase`][holidays.holiday_base.HolidayBase] object. Include public holidays for the financial market matching
holidays/utils.py:233
↓ 11 callers
Method
get_working_days_count
Calculate the number of working days between two dates. The date range works in a closed interval fashion [start, end] so both endpoi
holidays/holiday_base.py:1182
next →
1–100 of 7,727, ranked by callers