holidays.countries.laos

Classes

LA(*args, **kwargs)

param years:

LAO(*args, **kwargs)

param years:

Laos(*args, **kwargs)

A subclass of HolidayBase representing public holidays in Laos.

LaosStaticHolidays()

class holidays.countries.laos.Laos(*args, **kwargs)

Bases: ObservedHolidayBase, InternationalHolidays, StaticHolidays, ThaiCalendarHolidays

A subclass of HolidayBase representing public holidays in Laos.

References:

Limitations:

  • Laotian holidays only works from 1976 onwards, and are only 100% accurate from 2018 onwards.

  • Laotian Lunar Calendar Holidays only work from 1941 (B.E. 2485) onwards until 2057 (B.E. 2601) as we only have Thai year-type data for cross-checking until then.

Country created by: PPsyrius

Country maintained by: PPsyrius

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

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

supported_categories: Tuple[str, ...] = ('bank', 'public', 'school', 'workday')

All holiday categories supported by this entity.

default_language: str | None = 'lo'

The entity language used by default.

observed_label = 'ພັກຊົດເຊີຍ%s'
supported_languages: Tuple[str, ...] = ('en_US', 'lo', 'th')

All languages supported by this entity.

class holidays.countries.laos.LA(*args, **kwargs)

Bases: Laos

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.laos.LAO(*args, **kwargs)

Bases: Laos

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.laos.LaosStaticHolidays

Bases: object

special_bank_day_off = 'ມື້ປິດການໃຫ້ບໍລິການຂອງທະນາຄານຕົວແທນ'
new_year_day = 'ວັນປີໃໝ່ສາກົນ'
international_womens_rights_day = 'ວັນແມ່ຍິງສາກົນ'
lao_new_year = 'ບຸນປີໃໝ່ລາວ'
lao_new_year_special = 'ພັກບຸນປີໃໝ່ລາວ'
international_labor_day = 'ວັນກຳມະກອນສາກົນ'
lao_womens_union = 'ວັນສ້າງຕັ້ງສະຫະພັນແມ່ຍິງລາວ'
establishment_day_of_bol = 'ວັນສ້າງຕັ້ງທະນາຄານແຫ່ງ ສປປ ລາວ'
lao_national_day = 'ວັນຊາດ'
special_bank_holidays = {2015: (1, 2, 'ມື້ປິດການໃຫ້ບໍລິການຂອງທະນາຄານຕົວແທນ')}
special_bank_holidays_observed = {2017: (10, 9, 'ວັນສ້າງຕັ້ງທະນາຄານແຫ່ງ ສປປ ລາວ')}
special_public_holidays = {2015: (4, 17, 'ພັກບຸນປີໃໝ່ລາວ'), 2016: ((4, 13, 'ພັກບຸນປີໃໝ່ລາວ'), (4, 18, 'ພັກບຸນປີໃໝ່ລາວ')), 2020: ((4, 13, 'ພັກບຸນປີໃໝ່ລາວ'), (4, 17, 'ພັກບຸນປີໃໝ່ລາວ'))}
special_public_holidays_observed = {2011: (4, 13, 'ບຸນປີໃໝ່ລາວ'), 2012: ((1, 2, 'ວັນປີໃໝ່ສາກົນ'), (4, 13, 'ບຸນປີໃໝ່ລາວ'), (4, 17, 'ບຸນປີໃໝ່ລາວ'), (12, 3, 'ວັນຊາດ')), 2013: (4, 17, 'ບຸນປີໃໝ່ລາວ'), 2015: (3, 9, 'ວັນແມ່ຍິງສາກົນ'), 2016: (5, 2, 'ວັນກຳມະກອນສາກົນ'), 2017: ((1, 2, 'ວັນປີໃໝ່ສາກົນ'), (4, 13, 'ບຸນປີໃໝ່ລາວ'), (4, 17, 'ບຸນປີໃໝ່ລາວ'), (12, 4, 'ວັນຊາດ'))}
special_workday_holidays_observed = {2019: (7, 22, 'ວັນສ້າງຕັ້ງສະຫະພັນແມ່ຍິງລາວ')}