Skip to main content

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.

  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)
        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())
  1. 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.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

climatempopy-0.0.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file climatempopy-0.0.1.tar.gz.

File metadata

  • Download URL: climatempopy-0.0.1.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

Hashes for climatempopy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 413c7b7f3a2f6b9d42165a092f7e2a9ee33e533ad6b2b7979ff2d94f548b76f7
MD5 a7263f3f0c970a3554c3560b983907b7
BLAKE2b-256 2d98d611524c8732b0451d8570eb1ea7c85495bac171af10f4280bdc68b184e9

See more details on using hashes here.

File details

Details for the file climatempopy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: climatempopy-0.0.1-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

Hashes for climatempopy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a7b64a193e64a563460779ce5e5adff6099676772a4eb9b966cd91fb96bfe16b
MD5 0a5a84eac0afdb4aa8b7d147b0fa45c4
BLAKE2b-256 a6f2bce7d8cb37afacf9303b047f8a1ff81478deba8cfcbb14da48a2fb49bb5f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page