Skip to main content

Python library to retrieve information from Instituto Português do Mar e Atmosfera.

Project description

PyPI version

pyipma

Python library to retrieve information from Instituto Português do Mar e Atmosfera

Requirements

  • aiohttp
  • geopy

Example

import asyncio
import aiohttp

from pyipma import Station 

async def main():
    async with aiohttp.ClientSession() as session:
        station = await Station.get(session, 40.61,-8.64)
        print("Nearest station is {}".format(station.local))
        print("Current Weather:")
        print(await station.observation())
        print("Next days:")
        for forecast in await station.forecast():
            print(forecast)

asyncio.get_event_loop().run_until_complete(main())

Changelog

1.1.6 - Interpret -99 and unavailable 1.1.5 - Cache values 1.1.4 - New API ...

Credits

Values are obtained from IPMA

Copyright

(C) 2018 Diogo Gomes diogogomes@gmail.com

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

pyipma-1.2.0.tar.gz (4.3 kB view details)

Uploaded Source

File details

Details for the file pyipma-1.2.0.tar.gz.

File metadata

  • Download URL: pyipma-1.2.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for pyipma-1.2.0.tar.gz
Algorithm Hash digest
SHA256 3f2082c5ad6afee642939a89ea47233facd09a9a4755a59ca93aa9016b8b90ea
MD5 cf88eeb29a4e3206531144ea0ddbf623
BLAKE2b-256 1d519ef8dee6cd4a896b9302f71a25365ecdd9d1c8ae81ff58be95b71d0dbeea

See more details on using hashes here.

Supported by

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