Skip to content

davecom/PyWeatherKit

main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

PyWeatherKit

A simple Python wrapper for Apple's WeatherKit REST API.

You need an Apple developer account to use this library and you should first follow the setup instructions in their documentation.

So far it doesn't do much beyond retrieving a dictionary of weather data because that's all I need. Pull requests are welcome though!

Install

pip install pyweatherkit

Usage

from weatherkit.client import WKClient 
client = WKClient("YOUR TEAM ID", "YOUR SERVICE ID", "YOUR KEY ID", "PATH TO YOUR PRIVATE KEY FILE")
res = client.get_weather(44.50572, -73.24026)

You can also specify the language of the response, the timezone, and the specific datasets you need.

About

A simple Python wrapper for Apple's WeatherKit REST API.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages