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)
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())
- Scripts of this lib
$ pip3 install climatempopy
$ get_localeID YOUR_CLIMATEMPO_TOKEN LAT LON
$ get_weather_by_localeID YOUR_CLIMATEMPO_TOKEN LOCALE_ID
Release files for climatempopy 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| climatempopy-0.0.7.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| climatempopy-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.2 kB
Release files / climatempopy-0.0.7.tar.gz
| Download URL | climatempopy-0.0.7.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc09acd38abb34d82b1139cbc0fad1f9ab9e2be5dfa64619db9a4563b2cb426c
|
|
BLAKE2b-256 checksum How to use checksums |
942a025011af13d1173ac22bbb6ccb6e948e8a79c0f2ab6290c95f387bd2b178
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5
|
Release files / climatempopy-0.0.7-py3-none-any.whl
| Download URL | climatempopy-0.0.7-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fc9455e4eaacb05411e57a3bbc1c09e479fb5fc6c136ff40a3bec6c4c4b3142
|
|
BLAKE2b-256 checksum How to use checksums |
822e2feb16a8ea6b9328a68adc6b22ab52cf5cf53dcc2f9adfc1364da16f039e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5
|