Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_qweather-0.1.3-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

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

Hashes for python-qweather-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b0cd44eec3f797343d32a2ff556b12f38369d52cfc2d81634354a9a90577ac58
MD5 519aa2f65d5e8ce4d080c81796b2daae
BLAKE2b-256 c78b8fb0bc76c9d9ab45013828b6ecc721b4a9d82fa9a2e43ccb49963b86ad9b

See more details on using hashes here.

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

Hashes for python_qweather-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b861c74c1cf88f5a3b277296c7cbb2fbcc526125e98d42669b7b2cc85590f61d
MD5 911bfe784ae699c87644de56e6de7556
BLAKE2b-256 0b081fd00901b9efbc9cc7a804c5b181fcb5f41f3cb3063aab2e30d033efbb4e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page