airflow.providers.standard.utils.weekday
Get the ISO standard day number of the week from a given day string.
Classes
WeekDay
|
Python Enum containing Days of the Week. |
Module Contents
-
class airflow.providers.standard.utils.weekday.WeekDay[source]
Bases: enum.IntEnum
Python Enum containing Days of the Week.
-
MONDAY = 1[source]
-
TUESDAY = 2[source]
-
WEDNESDAY = 3[source]
-
THURSDAY = 4[source]
-
FRIDAY = 5[source]
-
SATURDAY = 6[source]
-
SUNDAY = 7[source]
-
classmethod get_weekday_number(week_day_str)[source]
Return the ISO Week Day Number for a Week Day.
- Parameters:
week_day_str (str) – Full Name of the Week Day. Example: “Sunday”
- Returns:
ISO Week Day Number corresponding to the provided Weekday
-
classmethod convert(day)[source]
Return the day number in the week.
-
classmethod validate_week_day(week_day)[source]
Validate each item of iterable and create a set to ease compare of values.