Changelogs » Astral

Astral

1.10.1

Changed

Keywords arguments to Astral __init__ are now passed to the geocoder to allow for passing
the `api_key` to GoogleGeocoder.

1.10

Added

Added method to AstralGeocoder to add locations to the database

1.9.2

Changed

1.9.1

Changed

Corrected version number in module source code.

1.9

Added

Sun calculations now take into account the elevation of the location.

1.8

Added

Added command line interface to return sun information as json.
Added support for no timezone in Location methods.

1.7.1

Changed

Changed GoogleGeocoder test to not use raise...from as this is not valid for Python 2

1.7

Changed

- Requests is now only needed when using GoogleGeocoder
- GoogleGeocoder now requires the `api_key` parameter to be passed to the constructor

1.6.1

Changed

- Updated Travis CI configuration

Added

- requirements-dev.txt

1.6

Changed

- Added api_key parameter to GoogleGeocoder __init__ method. Idea from
wpietruszewski https://github.com/sffjunkie/astral/pull/12

1.5

Added

- this file

Changed

- dawn_utc, sunrise_utc, sunset_utc and dusk_utc now only raise AstralError for a math domain
exception all other exceptions are passed through.
- moon_phase now takes another parameter if the type to return either int (the default) or float