Metadata-Version: 2.5
Name: aiopywttr
Version: 3.0.8
Summary: Asynchronous wrapper for wttr.in weather API
Project-URL: documentation, https://monosans.github.io/aiopywttr
Project-URL: repository, https://github.com/monosans/aiopywttr
Author-email: monosans <hsyqixco@protonmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: forecast
Classifier: Framework :: AsyncIO
Classifier: Framework :: Pydantic
Classifier: Framework :: Pydantic :: 2
Classifier: Framework :: aiohttp
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Programming Language :: Python :: 3.16
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: aiohttp>=3.8
Requires-Dist: pydantic>=2
Requires-Dist: pywttr-models<3,>=2
Description-Content-Type: text/markdown

# <img src="https://raw.githubusercontent.com/monosans/aiopywttr/main/docs/assets/logo.svg" alt="" width="40" align="top"> aiopywttr

[![Downloads](https://static.pepy.tech/badge/aiopywttr)](https://pepy.tech/project/aiopywttr)

Typed asyncio client for the [wttr.in](https://wttr.in) weather API. Without asyncio, use [pywttr](https://github.com/monosans/pywttr).

## Installation

```bash
uv add aiopywttr pywttr-models
# or
pip install -U aiopywttr pywttr-models
```

## Example

```python
import asyncio

import aiopywttr


async def main() -> None:
    async with aiopywttr.Wttr() as wttr:
        weather = await wttr.weather("Paris")

    now = weather.current_condition[0]
    print(f"{now.temp_c} °C, {now.weather_desc[0].value}")


asyncio.run(main())
```

## Documentation

<https://monosans.github.io/aiopywttr>

## License

[MIT](https://github.com/monosans/aiopywttr/blob/main/LICENSE)
