A Clima Tempo API Python Wrapper
Project description
ClimaTempoPy
A Clima Tempo API Python Wrapper
Retrieving Brazilian current weather and forecast prevision from Clima Tempo site.
- 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)
climatempo.update_current_weather()
climatempo.update_72_hours_forecast()
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())
- Scripts of this lib
To call this script:
$ pip3 install climatempopy
$ get_localeID YOUR_CLIMATEMPO_TOKEN LAT LON
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
climatempopy-0.0.6.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for climatempopy-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 271f0c9980c00b23b4802e244ae6a91589701e55ac6ecd2f795232461a9faade |
|
MD5 | 9a6e09dcd7cbe76646f234828b89545a |
|
BLAKE2b-256 | 5a4659fb56ec18cebdacb3617c0b81f57767ebcafc76ae7d9ed318770b461945 |