Fast and accurate calculation of the position of the sun.
from pyzonnestand import sun_position
start = datetime(2019, 1, 1, 12, 0, 0)
dt = [start + timedelta(hours=i) for i in range(48)]
data = sun_position(
dt=dt,
latitude=52.0,
longitude=5.0,
elevation=0.0,
)
Heavily inspired by sun-position.