Wrapper for wttr.in
Project description
pywttr
Wrapper for wttr.in weather forecast.
Asynchronous version here.
Installation
python -m pip install pywttr
Example
This example prints the average temperature in New York today.
import pywttr
forecast = pywttr.en.get_forecast("New York")
print(forecast.weather[0].avgtemp_c)
Other languages may also be used instead of en
. For a complete list of supported languages, see the file names or follow the code completion in your IDE.
Documentation
For an example of type annotations, see pywttr-models
README.md.
There is no documentation, just follow the code completion from your IDE.
Recommended IDEs:
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-0.1.3.tar.gz
(6.8 kB
view hashes)
Built Distribution
pywttr-0.1.3-py3-none-any.whl
(27.1 kB
view hashes)