datetime.isocalendar()

Return a named tuple with three components: year, week and weekday. The same as self.date().isocalendar().

Related Reading

datetime — Basic date and time types