From: Stuart Henderson Subject: Re: NEW: astro/py-ephem To: Mikolaj Kucharski Cc: ports@openbsd.org Date: Mon, 9 Jun 2025 10:37:32 +0100 On 2025/06/09 09:21, Mikolaj Kucharski wrote: > Hi. > > I needed to get info about sunrise and sunset. I am aware of py3-astral > but wanted to compare both, ephem and astral. Given the warnings on https://rhodesmill.org/pyephem/, I'm wondering if this is really a good idea to import unless there's some other software intended to be ported that needs it? Skyfield (largely from the same author and more actively developed) generally seems a better idea, for sunrise and sunset calcs see e.g. https://techoverflow.net/2022/06/19/how-to-compute-sunrise-sunset-in-python-using-skyfield/ If it is still worthwhile, here's a slightly tweaked version.