Metadata-Version: 2.5
Name: pywttr
Version: 4.1.4
Summary: Typed Python client for the wttr.in weather API
Project-URL: changelog, https://github.com/monosans/pywttr/blob/main/CHANGELOG.md
Project-URL: documentation, https://monosans.github.io/pywttr
Project-URL: issues, https://github.com/monosans/pywttr/issues
Project-URL: repository, https://github.com/monosans/pywttr
Author-email: monosans <hsyqixco@protonmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: api-client,forecast,httpx,pydantic,weather,weather-api,wttr,wttr-in
Classifier: Development Status :: 5 - Production/Stable
Classifier: Framework :: Pydantic
Classifier: Framework :: Pydantic :: 2
Classifier: Intended Audience :: Developers
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: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Scientific/Engineering :: Atmospheric Science
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: httpx2>=2.0.0
Requires-Dist: pydantic>=2.5
Requires-Dist: pywttr-models<3,>=2.1.1
Description-Content-Type: text/markdown

# <img src="https://raw.githubusercontent.com/monosans/pywttr/main/docs/assets/logo.svg" alt="" width="40" align="top"> 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
```

pywttr-models holds the response models and gets its own releases when wttr.in changes its responses. Naming it keeps `pip install -U` upgrading it along with pywttr.

## 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)
