Comparison
astral vs astronomy-engine vs PyMeeus 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 astralAstronomy calculation for Sun, Moon, and planets.
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install astronomy-enginePython implementation of Jean Meeus astronomical routines
Low maintenance activity. Last release over 3 years ago, commits in 6 of the last 26 weeks. Weaker on recent releases and release cadence.
pip install pymeeusFor 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.
- astronomy-engine is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- suntimes looks abandoned: avoid it for new projects.
- PyMeeus is the most used: 3.5M downloads a month.
- PyMeeus also has the best Pythie’s Index (37).
- PyMeeus is growing fastest: downloads +11% over the last month.
Side by side
| Metric | astral | astronomy-engine | PyMeeus | suntimes |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 10 | 10 |