holidays.countries.ethiopia

Classes

ET(*args, **kwargs)

param years:

ETH(*args, **kwargs)

param years:

Ethiopia(*args, **kwargs)

References:

EthiopiaIslamicHolidays()

class holidays.countries.ethiopia.Ethiopia(*args, **kwargs)

Bases: HolidayBase, ChristianHolidays, InternationalHolidays, IslamicHolidays

References:
Parameters:
  • years – The year(s) to pre-calculate public holidays for at instantiation.

  • expand – Whether the entire year is calculated when one date from that year is requested.

  • observed – Whether to include the dates when public holiday are observed (e.g. a holiday falling on a Sunday being observed the following Monday). This doesn’t work for all countries.

  • subdiv – The subdivision (e.g. state or province) as a ISO 3166-2 code or its alias; not implemented for all countries (see documentation).

  • provdeprecated use subdiv instead.

  • statedeprecated use subdiv instead.

  • language – The language which the returned holiday names will be translated into. It must be an ISO 639-1 (2-letter) language code. If the language translation is not supported the original holiday names will be used.

  • categories – Requested holiday categories.

Returns:

A HolidayBase object matching the country.

country: str = 'ET'

The country’s ISO 3166-1 alpha-2 code.

default_language: str | None = 'am'

The entity language used by default.

estimated_label = '%s (ግምት)'
supported_languages: Tuple[str, ...] = ('am', 'ar', 'en_US')

All languages supported by this entity.

class holidays.countries.ethiopia.ET(*args, **kwargs)

Bases: Ethiopia

Parameters:
  • years – The year(s) to pre-calculate public holidays for at instantiation.

  • expand – Whether the entire year is calculated when one date from that year is requested.

  • observed – Whether to include the dates when public holiday are observed (e.g. a holiday falling on a Sunday being observed the following Monday). This doesn’t work for all countries.

  • subdiv – The subdivision (e.g. state or province) as a ISO 3166-2 code or its alias; not implemented for all countries (see documentation).

  • provdeprecated use subdiv instead.

  • statedeprecated use subdiv instead.

  • language – The language which the returned holiday names will be translated into. It must be an ISO 639-1 (2-letter) language code. If the language translation is not supported the original holiday names will be used.

  • categories – Requested holiday categories.

Returns:

A HolidayBase object matching the country.

class holidays.countries.ethiopia.ETH(*args, **kwargs)

Bases: Ethiopia

Parameters:
  • years – The year(s) to pre-calculate public holidays for at instantiation.

  • expand – Whether the entire year is calculated when one date from that year is requested.

  • observed – Whether to include the dates when public holiday are observed (e.g. a holiday falling on a Sunday being observed the following Monday). This doesn’t work for all countries.

  • subdiv – The subdivision (e.g. state or province) as a ISO 3166-2 code or its alias; not implemented for all countries (see documentation).

  • provdeprecated use subdiv instead.

  • statedeprecated use subdiv instead.

  • language – The language which the returned holiday names will be translated into. It must be an ISO 639-1 (2-letter) language code. If the language translation is not supported the original holiday names will be used.

  • categories – Requested holiday categories.

Returns:

A HolidayBase object matching the country.

class holidays.countries.ethiopia.EthiopiaIslamicHolidays

Bases: _CustomIslamicHolidays

EID_AL_ADHA_DATES_CUSTOM_CALENDAR = {2018: (8, 22), 2019: (8, 11), 2020: (7, 31), 2021: (7, 20), 2022: (7, 9), 2023: (6, 28)}
EID_AL_FITR_DATES_CUSTOM_CALENDAR = {2018: (6, 15), 2019: (6, 4), 2020: (5, 24), 2021: (5, 13), 2022: (5, 2), 2023: (4, 21), 2024: (4, 10)}
MAWLID_DATES_CUSTOM_CALENDAR = {2018: (11, 21), 2019: (11, 10), 2020: (10, 29), 2021: (10, 18), 2022: (10, 8), 2023: (9, 27)}