Metadata-Version: 2.3
Name: pywttr
Version: 4.0.0
Summary: Wrapper for wttr.in weather API
Project-URL: documentation, https://pywttr.readthedocs.io
Project-URL: repository, https://github.com/monosans/pywttr
Author-email: monosans <hsyqixco@protonmail.com>
License: MIT
Keywords: forecast
Classifier: Framework :: Pydantic
Classifier: Framework :: Pydantic :: 2
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Typing :: Typed
Requires-Python: >=3.9
Requires-Dist: httpx
Requires-Dist: pywttr-models<3,>=2
Requires-Dist: typing-extensions>=4
Description-Content-Type: text/markdown

# pywttr

[![CI](https://github.com/monosans/pywttr/actions/workflows/ci.yml/badge.svg)](https://github.com/monosans/pywttr/actions/workflows/ci.yml)
[![Downloads](https://static.pepy.tech/badge/pywttr)](https://pepy.tech/project/pywttr)

Wrapper for [wttr.in](https://wttr.in) weather API.

Asynchronous version [here](https://github.com/monosans/aiopywttr).

## Installation

```bash
pip install -U pywttr pywttr-models
```

## Documentation

<https://pywttr.readthedocs.io>

## Simple example

```python
with pywttr.Wttr() as wttr:
    weather = wttr.weather("Paris", language=pywttr.Language.EN)
print(weather.weather[0].avgtemp_c)
```

## License

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