holidays.countries.austria

Classes

AT(*args, **kwargs)

param years:

AUT(*args, **kwargs)

param years:

Austria(*args, **kwargs)

param years:

class holidays.countries.austria.Austria(*args, **kwargs)

Bases: HolidayBase, ChristianHolidays, InternationalHolidays

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

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

default_language: str | None = 'de'

The entity language used by default.

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

All holiday categories supported by this entity.

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

All languages supported by this entity.

subdivisions: Tuple[str, ...] = ('1', '2', '3', '4', '5', '6', '7', '8', '9')

The subdivisions supported for this country (see documentation).

subdivisions_aliases: Dict[str, str] = {'B': '1', 'Bgld': '1', 'Burgenland': '1', 'K': '2', 'Ktn': '2', 'Kärnten': '2', 'N': '3', 'Niederösterreich': '3', 'NÖ': '3', 'O': '4', 'Oberösterreich': '4', 'OÖ': '4', 'S': '5', 'Salzburg': '5', 'Sbg': '5', 'St': '6', 'Steiermark': '6', 'Stmk': '6', 'T': '7', 'Tirol': '7', 'V': '8', 'Vbg': '8', 'Vorarlberg': '8', 'W': '9', 'Wien': '9'}

Aliases for the ISO 3166-2 subdivision codes with the key as alias and the value the ISO 3166-2 subdivision code.

class holidays.countries.austria.AT(*args, **kwargs)

Bases: Austria

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.austria.AUT(*args, **kwargs)

Bases: Austria

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.