Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Calculations for the position of the sun and moon.

Project description

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 http://pythonhosted.org/astral/

GoogleGeocoder

GoogleGeocoder uses the mapping services provided by Google

Access to the GoogleGeocoder requires you to agree to be bound by Google Maps/Google Earth APIs Terms of Service found at https://developers.google.com/maps/terms which includes but is not limited to having a Google Account.

More information on Google’s maps service can be found at https://developers.google.com/maps/documentation/

Version Description
0.8.1
  • Fix for bug #1417641: Astral.solar_elevation and Astral.solar_azimuth fail when a naive datetime object is used.
  • Added solar_zenith methods to Astral and Location as an alias for solar_elevation
  • Added tzinfo as an alias for tz
0.8 Fix for bug #1407773: Moon phase calculation changed to remove time zone parameter (tz) as it is not required for the calculation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
astral-0.8.1-py2.py3-none-any.whl (20.9 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Feb 4, 2015
astral-0.8.1.zip (21.2 kB) Copy SHA256 hash SHA256 Source None Feb 4, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page