Calculations for the position of the sun and moon.


Keywords
sun, moon, sunrise, sunset, dawn, dusk, moon-phase, python
License
Apache-2.0
Install
pip install astral==2.2

Documentation

Astral

travis_status pypi_ver

This is 'astral' a Python module which calculates

  • Times for various positions of the sun: dawn, sunrise, solar noon, sunset, dusk, solar elevation, solar azimuth and rahukaalam.
  • The phase of the moon.

For documentation see the https://astral.readthedocs.io/en/latest/index.html