Metadata-Version: 2.4
Name: meteofr
Version: 0.0.3
Summary: Access Meteo France API to fetch weather data.
Project-URL: Documentation, https://github.com/goodfr/meteofr#readme
Project-URL: Issues, https://github.com/goodfr/meteofr/issues
Project-URL: Source, https://github.com/goodfr/meteofr
Author-email: goodfr <44895259+goodfr@users.noreply.github.com>
License-Expression: MIT
License-File: LICENSE.txt
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.8
Requires-Dist: numba>=0.58.1
Requires-Dist: pandas>=2.0.3
Requires-Dist: pytest>=8.3.5
Requires-Dist: requests>=2.32.3
Requires-Dist: tqdm>=4.67.1
Description-Content-Type: text/markdown

# meteofr

[![PyPI - Version](https://img.shields.io/pypi/v/meteofr.svg)](https://pypi.org/project/meteofr)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/meteofr.svg)](https://pypi.org/project/meteofr)

-----

Tool to fetch weather data from Meteo France API based on latitude and longitude coordinates.

## Table of Contents

- [Installation](#installation)
- [License](#license)

## Installation

```console
pip install meteofr
```

## Quickstart

A first download of the list of weather stations is required to compute closest active at the time station from given point.

```python
from src.meteofr.get_data import get_weather

test_point = (47.218102, -1.552800)

td = Timestamp("today", tz="Europe/Paris").normalize().tz_convert("UTC")
dates = DatetimeIndex([td - Timedelta("30d"), td])  # 1 year max per request

df = get_weather(dates=dates, point=test_point)
```

## License

`meteofr` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
