Wrapper for wttr.in API
Project description
pywttr
Wrapper for wttr.in weather forecast API.
Asynchronous version here.
Installation
python -m pip install -U pywttr pywttr-models
Example
This example prints the average temperature in New York today.
import pywttr
wttr = pywttr.Wttr("New York")
forecast = wttr.en()
print(forecast.weather[0].avgtemp_c)
Other languages may also be used instead of en
. For a complete list of supported languages, follow the code completion in your IDE.
Documentation
There is no documentation, just follow the example and code completion in your IDE.
All types of objects returned by the wttr.in API are in the pywttr.models
package.
Recommended IDEs
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pywttr-2.2.0.tar.gz
(4.3 kB
view hashes)
Built Distribution
pywttr-2.2.0-py3-none-any.whl
(4.2 kB
view hashes)