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
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.3.tar.gz
(4.5 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.3.tar.gz.
File metadata
- Download URL: python-qweather-0.1.3.tar.gz
- Upload date:
- Size: 4.5 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 |
b0cd44eec3f797343d32a2ff556b12f38369d52cfc2d81634354a9a90577ac58
|
|
| MD5 |
519aa2f65d5e8ce4d080c81796b2daae
|
|
| BLAKE2b-256 |
c78b8fb0bc76c9d9ab45013828b6ecc721b4a9d82fa9a2e43ccb49963b86ad9b
|
File details
Details for the file python_qweather-0.1.3-py3-none-any.whl.
File metadata
- Download URL: python_qweather-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.1 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 |
b861c74c1cf88f5a3b277296c7cbb2fbcc526125e98d42669b7b2cc85590f61d
|
|
| MD5 |
911bfe784ae699c87644de56e6de7556
|
|
| BLAKE2b-256 |
0b081fd00901b9efbc9cc7a804c5b181fcb5f41f3cb3063aab2e30d033efbb4e
|