def chunk_date_range(start_date: DateTime, interval=pendulum.duration(days=1)) -> Iterable[Period]:
    '\n    Yields a list of the beginning and ending timestamps of each day between the start date and now.\n    The return value is a pendulum.period\n    '
    now = pendulum.now()
    while (start_date <= now):
        end_date = (start_date + interval)
        (yield pendulum.period(start_date, end_date))
        start_date = end_date
Yields a list of the beginning and ending timestamps of each day between the start date and now.
The return value is a pendulum.period
def chunk_date_range(start_date: DateTime, interval=pendulum.duration(days=1)) -> Iterable[Period]:
    '\n    Yields a list of the beginning and ending timestamps of each day between the start date and now.\n    The return value is a pendulum.period\n    '
    now = pendulum.now()
    while (start_date <= now):
        end_date = (start_date + interval)
        (yield pendulum.period(start_date, end_date))
        start_date = end_date