holidays.countries.kenya

Classes

KE(*args, **kwargs)

param years:

KEN(*args, **kwargs)

param years:

Kenya(*args, **kwargs)

https://en.wikipedia.org/wiki/Public_holidays_in_Kenya http://kenyaembassyberlin.de/Public-Holidays-in-Kenya.48.0.html https://www.officeholidays.com/holidays/kenya/moi-day

KenyaStaticHolidays()

class holidays.countries.kenya.Kenya(*args, **kwargs)

Bases: ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays

https://en.wikipedia.org/wiki/Public_holidays_in_Kenya http://kenyaembassyberlin.de/Public-Holidays-in-Kenya.48.0.html https://www.officeholidays.com/holidays/kenya/moi-day

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 = 'KE'

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

observed_label = '%s (observed)'
class holidays.countries.kenya.KE(*args, **kwargs)

Bases: Kenya

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.kenya.KEN(*args, **kwargs)

Bases: Kenya

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.kenya.KenyaStaticHolidays

Bases: object

special_public_holidays = {2020: (2, 11, 'President Moi Celebration of Life Day'), 2022: ((4, 29, 'State Funeral for Former President Mwai Kibaki'), (8, 9, 'Election Day'), (9, 10, 'Day of Mourning for Queen Elizabeth II'), (9, 11, 'Day of Mourning for Queen Elizabeth II'), (9, 12, 'Day of Mourning for Queen Elizabeth II'), (9, 13, 'Inauguration Day'))}