Asynchronous wrapper for wttr.in
Project description
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.
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.1.tar.gz
(6.7 kB
view hashes)
Built Distribution
aiopywttr-0.1.1-py3-none-any.whl
(27.9 kB
view hashes)
Close
Hashes for aiopywttr-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93c1a8c6cb272a801881fe858c2b12ba5681dfaf5653fe63e071e2fcfc333d5b |
|
MD5 | f2c001bd5c3d3e3f56cb68d1a90cfca4 |
|
BLAKE2b-256 | bbecb48a02ef909dcab0a79dd331863cd24a1f5be9b98271edb1656b22932cd0 |