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
from aiopywttr import Wttr
async def main():
wttr = Wttr("New York")
forecast = await wttr.en()
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, 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 in 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-1.0.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for aiopywttr-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4a29f103f81d4d8cc1bc81fcf0fe663ff81d7c58d5a70c9918e11112ba3c6a1 |
|
MD5 | f8a9ddc872c3250c4592dfc493053996 |
|
BLAKE2b-256 | 756ad53df97e12f71729cc8fc0c3c2d6f9e0110363b0b5f454f089669c42e208 |