Python API wrapper for https://qweather.com
Project description
Python API wrapper for 和风天气
Features
Usage
暂时只支持异步(async)调用,因为最初是为集成在 homeassistant 开发的 :)
实时天气
import aiohttp
import asyncio
from python_qweather import QWeather
async def test_now_weather():
async with aiohttp.ClientSession() as client_session:
q = QWeather(api_key=os.environ['QWEATHER_APIKEY'], session=client_session, location_key='101010100')
now_weather = await q.async_get_now_weather()
print(now_weather)
asyncio.run(test_now_weather())
TODO
Credits and Thanks
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
python-qweather-0.1.4.tar.gz
(5.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python-qweather-0.1.4.tar.gz.
File metadata
- Download URL: python-qweather-0.1.4.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.9 Darwin/21.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6ed8a8c55319ba29db5f817eb9af4c3a1e2ef1c5c0ab21f2d40922dfeac8e59
|
|
| MD5 |
d45dc281ee8957ee1d3d2c374890babe
|
|
| BLAKE2b-256 |
8a5a4c1fc73037a8a22c3924dbc38314493c6ffff7ccecc63f7cbccfc003ee4e
|
File details
Details for the file python_qweather-0.1.4-py3-none-any.whl.
File metadata
- Download URL: python_qweather-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.9 Darwin/21.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67709dfbf65a74f65578f0a0e2de3e0ea449e9881ae48ec703b69e8a8a02a876
|
|
| MD5 |
648a6659b280231577e4fbfa0c14d441
|
|
| BLAKE2b-256 |
c8a7e9a311e94ea5d070119185858c7598c9756fc4a18d884e9aa6c66b7bb30a
|