abstract_api.holidays.holidays_response module#

class abstract_api.holidays.holidays_response.Holiday(name: str, name_local: str, language: str, description: str, country: str, location: str, type: str, date: str, date_year: str, date_month: str, date_day: str, week_day: str)[source]#

Bases: object

Holiday entity in holidays service response.

property country: str#

The country in which the holiday occurs.

Returned directly from the request.

property date: str#

The date on which the holiday occurs.

property date_day: str#

The day in which the holiday occurs.

property date_month: str#

The month in which the holiday occurs.

property date_year: str#

The year in which the holiday occurs.

property description: str#

A short description or additional details on the holiday.

Such as the holiday is a part of a long weekend.

property language: str#

The language in which name_local is in.

property location: str#

The location or region in which the holiday occurs.

If the holiday is that specific.

property name: str#

The name of the holiday.

property name_local: str#

The local name of the holiday.

property type: str#

The type of holiday it is.

(e.g., public holiday, religious holiday, etc.).

property week_day: str#

The day of the week on which the holiday occurs.

(Monday, Tuesday, Wednesday, etc.).

class abstract_api.holidays.holidays_response.HolidaysResponse(response: Response)[source]#

Bases: JSONResponse

Holidays service response.

property holidays: tuple[Holiday, ...]#

The returned holidays.