Metadata-Version: 2.1
Name: jetblack-open-meteo
Version: 1.0.0a0
Summary: Client implementation for open-meteo
Author-email: Rob Blackbourn <rob.blackbourn@gmail.com>
Project-URL: Homepage, https://github.com/rob-blackbourn/jetblack-open-meteo
Project-URL: Issues, https://github.com/rob-blackbourn/jetblack-open-meteo/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# jetblack-open-meteo

A client API for [open-meteo](https://open-meteo.com).

## Status

This is work in progress.

## Usage

Rather than provide a client, this library provides the url and params.

This means you can use the http library of you choice.

For example with requests:

```python
import pandas as pd
import requests

from jetblack_open_meteo import prepare_weather_forecast_request


url, params = prepare_weather_forecast_request(
    (51.50242846391432, -0.1423227420691731),
    hourly=['temperature_2m'],
)

# Use requests to get the data.
response = requests.get(url, params=params)
data = response.json()

df = pd.DataFrame(data['hourly'])
print(df)
```
