Metadata-Version: 2.5
Name: pywttr
Version: 4.0.5
Summary: Wrapper for wttr.in weather API
Project-URL: documentation, https://monosans.github.io/pywttr
Project-URL: repository, https://github.com/monosans/pywttr
Author-email: monosans <hsyqixco@protonmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: forecast
Classifier: Framework :: Pydantic
Classifier: Framework :: Pydantic :: 2
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: httpx2
Requires-Dist: pywttr-models<3,>=2
Description-Content-Type: text/markdown

# pywttr

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

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

## Installation

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

## Example

```python
import pywttr

with pywttr.Wttr() as wttr:
    weather = wttr.weather("Paris")

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

## Documentation

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

## License

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