weathercls


Nameweathercls JSON
Version 1.0.0 PyPI version JSON
download
home_pageNone
SummaryPython library for storing and managing weather-related dataclasses from APIs.
upload_time2024-12-01 20:32:57
maintainerNone
docs_urlNone
authorDuy Nguyen
requires_python<4.0,>=3.10
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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/) |

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "weathercls",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": "Duy Nguyen",
    "author_email": "duynguyen02.dev@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/ab/41/3ab8f73af0ab500bb63330ffc682640a150a33e0b5b94b0b80934f1ea0a9/weathercls-1.0.0.tar.gz",
    "platform": null,
    "description": "# WeatherCls\n\n![PyPI - Version](https://img.shields.io/pypi/v/weathercls)\n\nA Python library for storing and managing weather-related dataclasses from APIs.\n\n## Installation\n\n```bash\npip install weathercls\n```\n\n## Basic Usage\nYou can initialize the class manually or convert a `Dictionary` into the corresponding class using other libraries such as [dacite](https://github.com/konradhalas/dacite).\n```python\nfrom dacite import from_dict\nfrom weathercls.weatherapicom import transform_to_snake_case\nfrom weathercls.weatherapicom.forecast_weather.ForecastWeather import ForecastWeather\n\nweather_forecast = {...}\nweather_forecast = transform_to_snake_case(weather_forecast) # converts keys with dashes to underscores for better compatibility with dacite\n\nforecast_weather = from_dict(data_class=ForecastWeather, data=weather_forecast)\nprint(forecast_weather)\n```\n\n## List of Classes by Weather APIs\n| Name               | Package                                                    |\n| ------------------ | ---------------------------------------------------------- |\n| **weatherapi.com** | [**weathercls.weatherapicom**](/weathercls/weatherapicom/) |\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python library for storing and managing weather-related dataclasses from APIs.",
    "version": "1.0.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "410d66f1c7993c6750a6fc03bc6cb61620c1f316163098ea056ab828d8886c73",
                "md5": "302b81512d20bc109b2614e52081ccc9",
                "sha256": "74bec04874d3e92f89f847b50a6b65142401a630063b9dafc596014e2cc25c8a"
            },
            "downloads": -1,
            "filename": "weathercls-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "302b81512d20bc109b2614e52081ccc9",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 8295,
            "upload_time": "2024-12-01T20:32:56",
            "upload_time_iso_8601": "2024-12-01T20:32:56.043679Z",
            "url": "https://files.pythonhosted.org/packages/41/0d/66f1c7993c6750a6fc03bc6cb61620c1f316163098ea056ab828d8886c73/weathercls-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ab413ab8f73af0ab500bb63330ffc682640a150a33e0b5b94b0b80934f1ea0a9",
                "md5": "5ec57f503da83767da87fa38fbbfe95a",
                "sha256": "7d264308f4b017cbffb52574db647ecbe9d5d6456e008b4ab6d4633c56135097"
            },
            "downloads": -1,
            "filename": "weathercls-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "5ec57f503da83767da87fa38fbbfe95a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 4284,
            "upload_time": "2024-12-01T20:32:57",
            "upload_time_iso_8601": "2024-12-01T20:32:57.985907Z",
            "url": "https://files.pythonhosted.org/packages/ab/41/3ab8f73af0ab500bb63330ffc682640a150a33e0b5b94b0b80934f1ea0a9/weathercls-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-01 20:32:57",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "weathercls"
}
        
Elapsed time: 1.27874s