A Python wrapper for the WeatherKit API
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PyWeatherKit-0.0.1.tar.gz
(7.8 kB
view hashes)
Built Distribution
Close
Hashes for pyweatherkit-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f40588a6049646e0975f26dfb23d29f6606665bbaad73ca0915eb0b3672e716 |
|
MD5 | 620fc26fb6a8df7328b31e7a1186f0d2 |
|
BLAKE2b-256 | 4a74488ea0e20a7943ba8f8a2cd651fc3dfb226b0b703ec48d5423573336ea06 |