Metadata-Version: 2.1
Name: openweatherapi-sdk
Version: 0.1
Summary: A simple SDK for interacting with the OpenWeatherMap API
Author: Snehal Palve
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests

# Weather SDK

A simple SDK for interacting with the OpenWeatherMap API.

## Installation

You can install the package using pip:

pip install openweatherapi_sdk


# Usage
* First, initialize the SDK with your OpenWeatherMap API key:
from openweatherapi_sdk.sdk import WeatherSDK

sdk = WeatherSDK(api_key="YOUR_API_KEY_HERE")

* Get Weather by City Name
You can retrieve weather data for a city by its name:

data = sdk.get_weather_by_city_name("London")
print(data)


* Get Weather by Coordinates
You can retrieve weather data for a location using its latitude and longitude coordinates:

data = sdk.get_weather_by_coordinates(lat=51.51, lon=-0.13)
print(data)

* Get Weather Timestamp
You can retrieve weather data timestamp for a location using its latitude and longitude coordinates and time:

data = sdk.get_weather_by_coordinates(lat=51.51, lon=-0.13, dt=1643803200 )
print(data)


* Get daily Aggregation
You can retrieve daily aggregation for a location using its latitude and longitude coordinates, date and timezone:

data = sdk.get_weather_by_coordinates(lat=51.51, lon=-0.13,&date=2020-03-04)
print(data)


* Make sure to replace `"YOUR_API_KEY_HERE"` with your actual OpenWeatherMap API key in the usage examples.
