climatempopy-0.0.7
توضیحات
A Clima Tempo API Python Wrapper
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | climatempopy-0.0.7 |
| نام | climatempopy |
| نسخه کتابخانه | 0.0.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Antonio Campos |
| ایمیل نویسنده | tonyldo@gmail.com |
| آدرس صفحه اصلی | https://github.com/tonyldo/climatempopy |
| آدرس اینترنتی | https://pypi.org/project/climatempopy/ |
| مجوز | - |
# ClimaTempoPy
## A Clima Tempo API Python Wrapper
### Retrieving Brazilian current weather and forecast prevision from Clima Tempo site.
1. Example
```
import sys
from climatempopy import ClimaTempo
from aiohttp import ClientSession
import asyncio
YOUR_CLIMA_TEMPO_TOKEN =''
LOCALE_ID = ''
async def main():
async with ClientSession() as session:
climatempo = ClimaTempo(session, YOUR_CLIMA_TEMPO_TOKEN , LOCALE_ID)
await climatempo.update_current_weather()
await climatempo.update_72_hours_forecast()
await climatempo.update_15_days_forecast()
print(climatempo.current)
print(climatempo.forecast_72_hours)
print(climatempo.forecast_15_days)
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
```
2. Scripts of this lib
```
$ pip3 install climatempopy
$ get_localeID YOUR_CLIMATEMPO_TOKEN LAT LON
$ get_weather_by_localeID YOUR_CLIMATEMPO_TOKEN LOCALE_ID
```
نیازمندی
| مقدار | نام |
|---|---|
| ==3.7.3 | aiohttp |
| ==2.1.0 | geopy |
| ==6.2.1 | pytest |
| ==0.14.0 | pytest-asyncio |
| ==1.1.2 | Unidecode |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl climatempopy-0.0.7:
pip install climatempopy-0.0.7.whl
نصب پکیج tar.gz climatempopy-0.0.7:
pip install climatempopy-0.0.7.tar.gz