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. 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.2.tar.gz
(6.7 kB
view hashes)
Built Distribution
aiopywttr-0.1.2-py3-none-any.whl
(28.0 kB
view hashes)
Close
Hashes for aiopywttr-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc4182dcee57af573d2e066184de4f1722b982612fd838e0dddc39e2dbeb11e0 |
|
MD5 | 2bce89719fe1cec3775db495cbb8ff59 |
|
BLAKE2b-256 | 5e4c4774a991a63f01dd0485929c72f4c9232fa56048391e1e985087bc26b03c |