Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
/ dark-sky-python Public archive

A wrapper for the Dark Sky (formerly forecast.io) weather API in Python 3.

License

Notifications You must be signed in to change notification settings

ratorx/dark-sky-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dark Sky Python

Python 3 wrapper for the Dark Sky Weather API. This should provide a lightweight library which is feature-complete with the API.

Powered by Dark Sky

Simple Usage

import forecast

API_KEY = "API KEY"
LAT = <LATITUDE>
LON = <LONGITUDE>

f = forecast.Forecast(API_KEY, LAT, LON) # Generates forecast object

From here, you can access all the data provided in the response.

Eg.

current = f.currently
print(current.summary)

Eg. to get the forecast in 1 hour:

hourly = f.hourly
print(hourly[1].summary)

About

A wrapper for the Dark Sky (formerly forecast.io) weather API in Python 3.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages