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
↓ 2 callers
Method
_add_mahavir_jayanti
Add Mahavir Jayanti. Mahavir Jayanti celebrates the birth of Lord Mahavira, the 24th Tirthankara of Jainism. It falls on the
holidays/groups/hindu.py:352
↓ 2 callers
Method
_add_mid_autumn
(self)
holidays/countries/hongkong.py:95
↓ 2 callers
Method
_add_myanmar_diwali
Add Myanmar Diwali holiday. Diwali (Deepavali, Festival of Lights) is one of the most important festivals in Indian religions. In Mya
holidays/groups/burmese.py:81
↓ 2 callers
Method
_add_myanmar_national_day
Add Myanmar National Day holiday. National Day is a public holiday in Myanmar, marking the anniversary of the first university studen
holidays/groups/burmese.py:100
↓ 2 callers
Method
_add_natures_day
Add Nature's Day, or Sizdah Bedar (13th day of the 1st month). Nature's Day is an Iranian festival, during which people spend time p
holidays/groups/persian.py:99
↓ 2 callers
Method
_add_new_years_day_three
Add New Year's Day Three (January 3rd). New Year's Day is a festival observed in most of the world on 1 January, the first d
holidays/groups/international.py:163
↓ 2 callers
Method
_add_non_continuous_holidays
Holidays removed by MoHA between 2019-2020.
holidays/countries/nepal.py:81
↓ 2 callers
Method
_add_nyepi
Add Nyepi (Day following the 9th of Dark Moon (Tilem)). Nyepi is a Balinese "Day of Silence" that is commemorated every Isak
holidays/groups/balinese_saka.py:34
↓ 2 callers
Method
_add_oil_nationalization_day
Add Iranian Oil Industry Nationalization Day (29th day of the 12th month). The nationalization of the Iranian oil industry resulted
holidays/groups/persian.py:146
↓ 2 callers
Method
_add_ok_phansa
Add Ok Phansa. End of Buddhist Lent (also written as Ok Phansa Day) is a Buddhist festival celebrated on the 15th Waxing Day
holidays/groups/thai.py:134
↓ 2 callers
Method
_add_onam
Add Onam. Onam is a major festival in Kerala, celebrating the homecoming of King Mahabali. It falls in the month of Chingam
holidays/groups/hindu.py:376
↓ 2 callers
Method
_add_parsi_new_year
Add Parsi New Year (Shahenshahi). The Parsi New Year (Shahenshahi) follows a fixed 365-day cycle and does not observe leap y
holidays/groups/hindu.py:538
↓ 2 callers
Method
_add_parwanaya_day
Add Parwanaya (Feast of Creation). A major Mandaean holiday celebrated over five days after the 8th month. The five intercala
holidays/groups/mandaean.py:47
↓ 2 callers
Method
_add_pchum_ben
Add Pchum Ben. Also known as "Prachum Bandar". This concides with the 15th Waning Day (New Moon) of Month 10 in Thai
holidays/groups/thai.py:148
↓ 2 callers
Method
_add_preah_neangkoal
Add Preah Reach Pithi Chrat Preah Neangkoal. Also known as "Cambodian Royal Ploughing Ceremony". This always concides with t
holidays/groups/thai.py:163
↓ 2 callers
Method
_add_purim
Add Purim. Purim is a Jewish holiday that commemorates the saving of the Jewish people from annihilation at the hands of an
holidays/groups/hebrew.py:84
↓ 2 callers
Method
_add_raksha_bandhan
Add Raksha Bandhan. Raksha Bandhan is a Hindu festival that celebrates the bond between brothers and sisters. It falls on th
holidays/groups/hindu.py:421
↓ 2 callers
Method
_add_sharad_navratri
Add Navratri / Sharad Navratri. Navratri is a Hindu festival dedicated to the worship of Goddess Durga. It is celebrated ove
holidays/groups/hindu.py:446
↓ 2 callers
Method
_add_statutory_holidays
Nationwide statutory holidays.
holidays/countries/canada.py:103
↓ 2 callers
Method
_add_tabaung_full_moon_day
Add Full Moon Day of Tabaung holiday. Māgha Pūjā (also written as Makha Bucha Day, Meak Bochea) is a Buddhist festival celebrated on
holidays/groups/burmese.py:162
↓ 2 callers
Method
_add_tazaungmon_full_moon_day
Add Full Moon Day of Tazaungmon holiday. The Tazaungdaing Festival, also known as the Festival of Lights, held on the full moon day o
holidays/groups/burmese.py:180
↓ 2 callers
Method
_add_thadingyut_full_moon_day
Add Full Moon Day of Thadingyut holiday. The Thadingyut Festival, also known as the Lighting Festival of Myanmar, is held on the full
holidays/groups/burmese.py:216
↓ 2 callers
Method
_add_thimphu_drubchen_day
Add Thimphu Drubchen (6th day of the 8th lunar month).
holidays/groups/tibetan.py:108
↓ 2 callers
Method
_add_thimphu_tshechu_day
Add Thimphu Tshechu (10th day of the 8th lunar month).
holidays/groups/tibetan.py:116
↓ 2 callers
Method
_add_vaisakhi
Add Vaisakhi. Vaisakhi is a major Sikh festival marking the Sikh New Year and the founding of the Khalsa. It falls on April
holidays/groups/hindu.py:526
↓ 2 callers
Method
_add_vesak
Add Vesak (15th day of the 4th lunar month). Vesak for Thailand, Laos, Singapore and Indonesia. https://en.wikipedia.org/wik
holidays/groups/buddhist.py:41
↓ 2 callers
Method
_add_waso_full_moon_day
Add Full Moon Day of Waso holiday. Vassa is the three-month annual retreat observed by Theravada Buddhists. Vassa lasts for three lun
holidays/groups/burmese.py:252
↓ 2 callers
Method
_assertWorkingDay
Helper: assert each date is a working day.
tests/common.py:786
↓ 2 callers
Method
_assert_byte_output
(self, exporter, expected_bytes)
tests/test_ical.py:77
↓ 2 callers
Method
_check_holidays_years
Only holidays within the requested years should be returned. This prevents triggering a `RuntimeError: dictionary changed size during
tests/test_utils.py:130
↓ 2 callers
Function
_fetch_url
(url: str)
scripts/calendar/germany_school_generator.py:190
↓ 2 callers
Function
_get_all_sundays
(year)
holidays/calendars/gregorian.py:127
↓ 2 callers
Method
_get_entity_codes
( container: RegistryDict, *, include_aliases: bool = True, max_code_length: i
holidays/registry.py:361
↓ 2 callers
Method
_get_holiday
(self, holiday: str, year: int)
holidays/calendars/buddhist.py:429
↓ 2 callers
Method
_get_school_holiday_names
()
holidays/countries/germany.py:121
↓ 2 callers
Method
_init_translation
Initialize translation function based on language settings.
holidays/holiday_base.py:773
↓ 2 callers
Method
_is_observed
Check whether observed shifting applies for the current year. Returns: `True` if `observed_since` is unset or the current year is
holidays/observed_holiday_base.py:164
↓ 2 callers
Method
_is_tuesday
(self, *args)
holidays/holiday_base.py:904
↓ 2 callers
Method
_is_wednesday
(self, *args)
holidays/holiday_base.py:907
↓ 2 callers
Function
_list_localized_entities
Get all localized entities and languages they support. Args: entity_codes: A list of entity codes. Returns: A di
holidays/utils.py:349
↓ 2 callers
Function
_list_supported_entities
Get all supported entities and their subdivisions. Args: entity_codes: A list of entity codes. Returns: A dictio
holidays/utils.py:404
↓ 2 callers
Method
_lunar_month_days
Return the number of days in a lunar month.
scripts/calendar/asian_generator.py:279
↓ 2 callers
Function
_parse_school_year
(value: str)
scripts/calendar/germany_school_generator.py:324
↓ 2 callers
Method
_parse_table
Parse HTML table at given index from README.md content.
tests/test_docs.py:52
↓ 2 callers
Method
_populate_common
Populates common US holidays. Federal Holidays were first codified on June 28th, 1870 via 16 Stat. 168. First regul
holidays/countries/united_states.py:304
↓ 2 callers
Method
_populate_common
Populate holidays that are both optional and bank holidays.
holidays/countries/sweden.py:161
↓ 2 callers
Method
_populate_common
(self, *, is_martial_law: bool = False)
holidays/countries/ukraine.py:57
↓ 2 callers
Method
_populate_observed
Taiwan's General Observance Rule first started in 2015 as per decreed in 內政部台內民字第1030182404號令. Children's Day Special Observ
holidays/countries/taiwan.py:111
↓ 2 callers
Method
_populate_subdiv_by_public_holidays
(self)
holidays/countries/germany.py:223
↓ 2 callers
Method
_populate_subdiv_stadt_zurich_common
Populate list of holidays observed by both `HALF_DAY` and `OPTIONAL` categories.
holidays/countries/switzerland.py:761
↓ 2 callers
Method
_test_categorized_holiday
(self, name, holidays_list, since, end_year=None)
tests/countries/test_finland.py:240
↓ 2 callers
Method
add_pull_request
Add pull request information to the release notes dict.
scripts/generate_release_notes.py:134
↓ 2 callers
Method
asarnha_bucha_date
Calculate the estimated Gregorian date of Asarnha Bucha. Also known as "Asalha Puja". This coincides with the 15th Waxing Day of Mont
holidays/calendars/thai.py:545
↓ 2 callers
Method
ashura_dates
(self, year: int)
holidays/calendars/islamic.py:4233
↓ 2 callers
Method
assertLocalizedEntities
(self, localized_entities, supported_entities)
tests/test_utils.py:166
↓ 2 callers
Method
assertSundays
(self, cls)
tests/common.py:747
↓ 2 callers
Method
atthami_bucha_date
Calculate the estimated Gregorian date of Atthami Bucha. Also known as "Buddha's Cremation Day". This coincides with the 8th Waning D
holidays/calendars/thai.py:496
↓ 2 callers
Method
boun_haw_khao_padapdin_date
Calculate the estimated Gregorian date of Boun Haw Khao Padapdin. Also known as "Boon Khao Padap Din". This coincides with the 14th W
holidays/calendars/thai.py:625
↓ 2 callers
Method
boun_haw_khao_salark_date
Calculate the estimated Gregorian date of Boun Haw Khao Salark. Also known as "Boon Khao Sak". This coincides with the 15th Waxing Da
holidays/calendars/thai.py:662
↓ 2 callers
Method
boun_suang_heua_date
Calculate the estimated Gregorian date of Ok Boun Suang Huea. Boun Suang Huea Nakhone Luang Prabang, also known as "Vientiane Boat Racing Fes
holidays/calendars/thai.py:773
↓ 2 callers
Method
buddha_birthday_date
(self, year: int, calendar=None)
holidays/calendars/chinese.py:1379
↓ 2 callers
Method
buddhist_sabbath_dates
Return all Buddhist Sabbath (Uposatha) days in a given Gregorian year. This function works independently of the calendar system in use,
holidays/calendars/thai.py:325
↓ 2 callers
Method
check_aliases
(self, registry, prefix)
tests/common.py:648
↓ 2 callers
Method
check_availability_api
Checks the Wayback Machine CDX API for the latest available capture. Returns: The Wayback URL of the latest capture, or None if n
scripts/archive_links.py:154
↓ 2 callers
Method
days_in_year
(self, year: int)
scripts/calendar/hebrew_generator.py:94
↓ 2 callers
Method
double_ninth_date
(self, year: int)
holidays/calendars/chinese.py:1382
↓ 2 callers
Method
dragon_boat_date
(self, year: int)
holidays/calendars/chinese.py:1385
↓ 2 callers
Function
find_festival_date
(y: int, m_month: int, m_day: int)
scripts/calendar/mongolian_generator.py:139
↓ 2 callers
Method
find_links_in_file
Finds all hyperlinks within a single text file, respecting IGNORE_DOMAINS.
scripts/archive_links.py:109
↓ 2 callers
Method
holi_date
(self, year: int)
holidays/calendars/hindu.py:1591
↓ 2 callers
Method
imam_mahdi_birthday_dates
(self, year: int)
holidays/calendars/islamic.py:4260
↓ 2 callers
Method
israel_independence_date
(self, year: int)
holidays/calendars/hebrew.py:1607
↓ 2 callers
Method
khao_phansa_date
Calculate the estimated Gregorian date of Khao Phansa. Also known as "(Start of) Buddhist Lent" and "Start of Vassa". This coincides
holidays/calendars/thai.py:585
↓ 2 callers
Method
leap
Return True if a Hebrew year is a leap year.
scripts/calendar/hebrew_generator.py:61
↓ 2 callers
Method
load
Load country or financial entities.
holidays/registry.py:401
↓ 2 callers
Method
losar_date
(self, year: int)
holidays/calendars/tibetan.py:1881
↓ 2 callers
Method
loy_krathong_date
Calculate the estimated Gregorian date of Loy Krathong. Also known as "Boun That Louang" and "Bon Om Touk". This coincides with the 1
holidays/calendars/thai.py:810
↓ 2 callers
Method
maha_ashtami_date
(self, year: int)
holidays/calendars/hindu.py:1600
↓ 2 callers
Method
normalize
Apply character replacements to a string while preserving URLs.
scripts/normalize_text.py:64
↓ 2 callers
Method
ok_phansa_date
Calculate the estimated Gregorian date of Ok Phansa. Also known as "End of Buddhist Lent" and "End of Vassa". This coincides with the
holidays/calendars/thai.py:736
↓ 2 callers
Method
pchum_ben_date
Calculate the estimated Gregorian date of Pchum Ben. Also known as "Prachum Bandar". This coincides with the 15th Waning Day of Month
holidays/calendars/thai.py:699
↓ 2 callers
Method
preah_neangkoal_date
Calculate the estimated Gregorian date of Preah Neangkoal. Also known as "Cambodian Royal Ploughing Ceremony". This always coincides
holidays/calendars/thai.py:464
↓ 2 callers
Method
prepare_snapshot_directory
Prepare a directory for snapshots.
scripts/generate_snapshots.py:63
↓ 2 callers
Method
purim_date
(self, year: int)
holidays/calendars/hebrew.py:1616
↓ 2 callers
Method
read_csv
(self)
scripts/l10n/l10n_helper.py:157
↓ 2 callers
Method
tazaungmon_full_moon_date
Calculate the Gregorian date of Full Moon Day of Tazaungmon. 15th day of 8th month (Tazaungmon). To calculate, we use the following
holidays/calendars/burmese.py:251
↓ 2 callers
Method
write_csv
(self, headers: list[str], rows: list[list[str]])
scripts/l10n/l10n_helper.py:167
↓ 1 callers
Function
CountryHoliday
Note: Deprecated name for `country_holidays()`.
holidays/utils.py:327
↓ 1 callers
Method
__add__
Add another dictionary of public holidays creating a [`HolidaySum`][holidays.holiday_base.HolidaySum] object. Args: other
holidays/holiday_base.py:383
↓ 1 callers
Method
__init__
Args: h1: The first HolidayBase object to add. h2: The other HolidayBase object to a
holidays/holiday_base.py:1390
↓ 1 callers
Method
__init__
(self, *args, **kwargs)
holidays/countries/eswatini.py:32
↓ 1 callers
Method
__is_gregorian_calendar
Return True if `calendar` is Gregorian calendar. Return False otherwise.
holidays/groups/christian.py:66
↓ 1 callers
Method
_add_ali_al_rida_death_day
Add death of Ali al-Rida day (last (29th or 30th) day of 2nd month). https://en.wikipedia.org/wiki/Ali_al-Rida
holidays/groups/islamic.py:36
↓ 1 callers
Method
_add_ali_birthday_day
Add birthday of Ali ibn Abu Talib day (13th day of 7th month). https://en.wikipedia.org/wiki/Ali
holidays/groups/islamic.py:46
↓ 1 callers
Method
_add_ali_death_day
Add death of Ali ibn Abu Talib day (21st day of 9th month). https://en.wikipedia.org/wiki/Ali
holidays/groups/islamic.py:56
↓ 1 callers
Method
_add_arbaeen_day
Add Arbaeen day (20th day of 2nd month). https://en.wikipedia.org/wiki/Arbaeen
holidays/groups/islamic.py:66
↓ 1 callers
Method
_add_bak_poya
Add Bak Poya (first full moon day of the 5th lunar month). https://web.archive.org/web/20250417183100/https://us.lakpura.com/pages/b
holidays/groups/sinhala.py:67
↓ 1 callers
Method
_add_balinese_saka_calendar_holiday
Add Balinese Saka calendar holiday.
holidays/groups/balinese_saka.py:26
↓ 1 callers
Method
_add_bathukamma
Add Bathukamma Festival. Bathukamma is a floral festival celebrated predominantly in Telangana and some parts of Andhra Prad
holidays/groups/hindu.py:63
↓ 1 callers
Method
_add_binara_poya
Add Binara Poya (first full moon day of the 10th lunar month). https://web.archive.org/web/20250415144613/https://us.lakpura.com/pag
holidays/groups/sinhala.py:77
← previous
next →
301–400 of 7,727, ranked by callers