This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This is ‘solartime’, a Python module which calculates times for various positions of the sun: dawn, sunrise, solar noon, sunset, and dusk.

‘solartime’ is a vastly-simplified fork of Simon Kennedy’s ‘astral’ module, and is Free / Libre Open Source software under the Apache 2.0 license.

Its only dependency is the pytz package, and Python 2.6, 2.7, 3.3+.

Example usage:

>>> from datetime import date
>>> from pytz import timezone
>>> from solartime import SolarTime
>>> today = date(2014, 4, 20)
>>> localtz = timezone('US/Eastern')
>>> lat, lon = 38.0, -79.0
>>> sun = SolarTime()
>>> schedule = sun.sun_utc(today, lat, lon)
>>> sunset = schedule['sunset'].astimezone(localtz)
>>> print sunset
2014-04-20 19:56:38-04:00


Copyright 2015 David A. Riggs <> Copyright 2009-2014 Simon Kennedy <>

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
solartime-0.1b0.tar.gz (5.7 kB) Copy SHA256 Checksum SHA256 Source Jan 20, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting