Metadata-Version: 2.1
Name: weathercls
Version: 1.0.0
Summary: Python library for storing and managing weather-related dataclasses from APIs.
License: MIT
Author: Duy Nguyen
Author-email: duynguyen02.dev@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Description-Content-Type: text/markdown

# WeatherCls

![PyPI - Version](https://img.shields.io/pypi/v/weathercls)

A Python library for storing and managing weather-related dataclasses from APIs.

## Installation

```bash
pip install weathercls
```

## Basic Usage
You can initialize the class manually or convert a `Dictionary` into the corresponding class using other libraries such as [dacite](https://github.com/konradhalas/dacite).
```python
from dacite import from_dict
from weathercls.weatherapicom import transform_to_snake_case
from weathercls.weatherapicom.forecast_weather.ForecastWeather import ForecastWeather

weather_forecast = {...}
weather_forecast = transform_to_snake_case(weather_forecast) # converts keys with dashes to underscores for better compatibility with dacite

forecast_weather = from_dict(data_class=ForecastWeather, data=weather_forecast)
print(forecast_weather)
```

## List of Classes by Weather APIs
| Name               | Package                                                    |
| ------------------ | ---------------------------------------------------------- |
| **weatherapi.com** | [**weathercls.weatherapicom**](/weathercls/weatherapicom/) |

