Async weather API wrapper for fetching weather and forecast data
Project description
Async Weather SDK
Async weather API wrapper for fetching weather and forecast data
Core Dependencies
Asyncio: a library to write concurrent code using the async/await syntax.
Aiohttp: an asynchronous HTTP Client/Server for asyncio and Python.
Install
pip install async-weather-sdk
OR
poetry add async-weather-sdk
Usage
QQ Weather API SDK
Get current weather/forecast data by province and city.
from async_weather_sdk.qq import QQWeather
weather = QQWeather()
await weather.fetch_current_weather('北京市', '北京市')
await weather.fetch_weather_forecast('北京市', '北京市', 3)
Query current weather/forecast data with tencent map api key.
from async_weather_sdk.qq import query_current_weather, query_weather_forecast
await query_current_weather('API_KEY', '北京市')
await query_weather_forecast('API_KEY', '39.90469,116.40717')
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
Built Distribution
File details
Details for the file async-weather-sdk-0.1.1.tar.gz
.
File metadata
- Download URL: async-weather-sdk-0.1.1.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.3 Linux/5.3.0-1020-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 710c51c07c72097e35e8550feaced36b7dc3fd7d22222a2634ce47281db86e09 |
|
MD5 | 251cc1cf773509e32a656c336123809e |
|
BLAKE2b-256 | 664b3711d7ceb049b0a89d56c6b3245596616237bc325743b583e13885590ed4 |
File details
Details for the file async_weather_sdk-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: async_weather_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.3 Linux/5.3.0-1020-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cc1448f5327be0b5a0852690a9b8be4295d10551a25c2eb99810d75cfdeb67a |
|
MD5 | 2098530b8e367f76598b43000bba93f2 |
|
BLAKE2b-256 | fd8275dabda7312985430644361994a67cdb4374c2fe59509d6dba996c095265 |