async-weather-sdk-0.1.1
توضیحات
Async weather API wrapper for fetching weather and forecast data
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | async-weather-sdk-0.1.1 |
| نام | async-weather-sdk |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | DecentFoX |
| ایمیل نویسنده | service@decentfox.com |
| آدرس صفحه اصلی | https://github.com/decentfox/async-weather-sdk |
| آدرس اینترنتی | https://pypi.org/project/async-weather-sdk/ |
| مجوز | MIT |
# Async Weather SDK
[](https://badge.fury.io/py/async-weather-sdk)
[](https://github.com/decentfox/async-weather-sdk/actions?query=workflow%3Atest)
[](https://www.codacy.com/gh/decentfox/async-weather-sdk?utm_source=github.com&utm_medium=referral&utm_content=decentfox/async-weather-sdk&utm_campaign=Badge_Coverage)
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
```bash
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.
```python
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.
```python
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')
```
نیازمندی
| مقدار | نام |
|---|---|
| >=3.6.2,<4.0.0 | aiohttp[speedups] |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6,<4.0 | Python |
نحوه نصب
نصب پکیج whl async-weather-sdk-0.1.1:
pip install async-weather-sdk-0.1.1.whl
نصب پکیج tar.gz async-weather-sdk-0.1.1:
pip install async-weather-sdk-0.1.1.tar.gz