aiopywttr
Asynchronous wrapper for wttr.in weather forecast.
Synchronous version here.
Installation
pip install aiopywttr
Example
This example prints the average temperature in New York today.
import asyncio
import aiopywttr
async def main():
forecast = await aiopywttr.en.get_forecast("New York")
print(forecast.weather[0].avgtemp_c)
asyncio.run(main())
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
There is no documentation, just follow the code completion from your IDE. I'd recommend Visual Studio Code (with Python extension) or PyCharm.