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.2.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file climatempopy-0.0.2.tar.gz.
File metadata
- Download URL: climatempopy-0.0.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3126d51d60b0902e5b94540c0c6726e9a5b6faf734e0198bba8b22a9cdcc947
|
|
| MD5 |
4b504851e31b4cd455b7988f2817d1d2
|
|
| BLAKE2b-256 |
31d3aacd6f86c046c1f35c88ef2b3e51c8718f98d7e8c07d9c7406fb92187db3
|
File details
Details for the file climatempopy-0.0.2-py3-none-any.whl.
File metadata
- Download URL: climatempopy-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5943b001f295c2777081f3759b2898f7d6b27a9171456d7a37a21386fdccd927
|
|
| MD5 |
126a2c86010c6d5ba9ab99d9bb0c704a
|
|
| BLAKE2b-256 |
460bfb0c40c493fc80f2d6d8b0a0b428022a31750fd38a691cd80a8034cf7fa8
|