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
There is no documentation, just follow the code completion in your IDE.
For an example of type annotations, see pywttr-models
README.md.
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
aiopywttr-1.0.2.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for aiopywttr-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9b0305d8bfd494188a0facbd039a035c2f55ef7c714b4ae10ef17b1e1480247 |
|
MD5 | cca59800febbef863d6f02e6a657ce74 |
|
BLAKE2b-256 | 8fdc9bddc29df183b12d9b681d06658bdf2e81a066d5ce8853a60e6535949233 |