holidays.countries.uruguay

Classes

URY(*args, **kwargs)

param years:

UY(*args, **kwargs)

param years:

Uruguay(*args, **kwargs)

References: - https://en.wikipedia.org/wiki/Public_holidays_in_Uruguay - [Law #6997] https://www.impo.com.uy/diariooficial/1919/10/25/2 - [Decree Law #9000] https://www.impo.com.uy/bases/decretos-ley/9000-1933 - [Decree Law #14977] https://www.impo.com.uy/bases/decretos-ley/14977-1979 - [Decree Law #15535] https://www.impo.com.uy/bases/decretos-ley/15535-1984 - [Law #16805] http://www.parlamento.gub.uy/leyes/AccesoTextoLey.asp?Ley=16805 - [Law #17414] http://www.parlamento.gub.uy/leyes/AccesoTextoLey.asp?Ley=17414

UruguayStaticHolidays()

class holidays.countries.uruguay.Uruguay(*args, **kwargs)

Bases: ObservedHolidayBase, ChristianHolidays, InternationalHolidays, StaticHolidays

References: - https://en.wikipedia.org/wiki/Public_holidays_in_Uruguay - [Law #6997] https://www.impo.com.uy/diariooficial/1919/10/25/2 - [Decree Law #9000] https://www.impo.com.uy/bases/decretos-ley/9000-1933 - [Decree Law #14977] https://www.impo.com.uy/bases/decretos-ley/14977-1979 - [Decree Law #15535] https://www.impo.com.uy/bases/decretos-ley/15535-1984 - [Law #16805] http://www.parlamento.gub.uy/leyes/AccesoTextoLey.asp?Ley=16805 - [Law #17414] http://www.parlamento.gub.uy/leyes/AccesoTextoLey.asp?Ley=17414

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

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

default_language: str | None = 'es'

The entity language used by default.

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

All holiday categories supported by this entity.

supported_languages: Tuple[str, ...] = ('en_US', 'es', 'uk')

All languages supported by this entity.

class holidays.countries.uruguay.UY(*args, **kwargs)

Bases: Uruguay

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.uruguay.URY(*args, **kwargs)

Bases: Uruguay

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.uruguay.UruguayStaticHolidays

Bases: object

presidential_inauguration_day = 'Inauguración del Presidente de la República'
special_public_holidays = {1985: (3, 1, 'Inauguración del Presidente de la República'), 1990: (3, 1, 'Inauguración del Presidente de la República'), 1995: (3, 1, 'Inauguración del Presidente de la República'), 2000: (3, 1, 'Inauguración del Presidente de la República'), 2005: (3, 1, 'Inauguración del Presidente de la República'), 2010: (3, 1, 'Inauguración del Presidente de la República'), 2015: (3, 1, 'Inauguración del Presidente de la República'), 2020: (3, 1, 'Inauguración del Presidente de la República')}