Comparison
astral vs ephem vs suntimes
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Calculations for the position of the sun and moon.
Likely abandoned. No release or commit for years (last release over 4 years ago).
pip install astralCompute positions of the planets and stars
Low maintenance activity. Last release 9 months ago, commits in 1 of the last 26 weeks. Weaker on commit activity and release cadence.
pip install ephemFor a given place (longitude, latitude and altitude) and a given day, returns the time of sunrise and the time of sunset (in UTC and in local time). Create and save a json or csv file with the timetables for a whole year. Calculations valid beyond the polar circles; returns Polar Day or Polar Night if needed.
Likely abandoned. No release or commit for years (last release over 4 years ago).
pip install suntimesIn short
- astral looks abandoned: avoid it for new projects.
- suntimes looks abandoned: avoid it for new projects.
- ephem is the most used: 1.5M downloads a month.
- ephem also has the best Pythie’s Index (34).