Solar and Moon eclipses

I dont know if this is allowed but i guess its not hard if …
an integration that tracks solar and lunar eclipses and other fun astronomical events.
i came across many integration that tracks meteorogical events but none track eclipses.

Has anyone come across an API / Python library that will show eclipse details? Turns out there are a couple in the future I’d like to track