Asynchronous wrapper for wttr.in
Project description
aiopywttr
Asynchronous wrapper for wttr.in weather forecast.
Synchronous version here.
Installation
python -m 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
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
aiopywttr-0.1.3.tar.gz
(6.8 kB
view hashes)
Built Distribution
aiopywttr-0.1.3-py3-none-any.whl
(28.3 kB
view hashes)
Close
Hashes for aiopywttr-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 431c6d5ee1e681810e06dd1d68076d930216f1441d851fa86716a0eede585915 |
|
MD5 | c72dcbe9540434b6fbd1bced07351b6f |
|
BLAKE2b-256 | 471e7caad3eef45cdc76bd031763c1d0c5ab163eadbbd09a42a6867a52b1b69f |