SunTimes - Sunrise and Sunset Calculation

JSON →
library 1.1.2 ·python
verified May 26, 2026

The `suntimes` library (version 1.1.2) provides functions to calculate sunrise and sunset times for a given geographical location (longitude, latitude, altitude) and day. It returns times in UTC and local time, handles polar day/night scenarios, and can generate yearly timetables in JSON or CSV format. It is actively maintained and has a steady release cadence for minor updates.

total hits 11
actors 3 distinct systems
last hit 3d ago AhrefsBot
GPTBot
5
Script
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇮🇳 India · 🇩🇪 Germany · 🇫🇷 France