https://github.com/monosans/pywttr
Wrapper for wttr.in weather forecast.
https://github.com/monosans/pywttr
Last synced: over 1 year ago
JSON representation
Wrapper for wttr.in weather forecast.
- Host: GitHub
- URL: https://github.com/monosans/pywttr
- Owner: monosans
- License: mit
- Created: 2021-12-12T17:15:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-15T01:15:56.000Z (about 2 years ago)
- Last Synced: 2024-04-16T01:42:13.203Z (about 2 years ago)
- Language: Python
- Homepage: https://pywttr.readthedocs.io
- Size: 1.59 MB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# pywttr
[](https://github.com/monosans/pywttr/actions/workflows/ci.yml)
[](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
## 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)