Skip to main content

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)

Uploaded Source

Built Distribution

pyweatherkit-0.0.1-py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page