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
  • BeautifulSoup4
  • 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 if {}".format(station.local))
        print(await station.forecast())
        print(await station.observation())

if __name__ == "__main__":
    asyncio.get_event_loop().run_until_complete(main())

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

Uploaded Source

File details

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

File metadata

  • Download URL: pyipma-1.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyipma-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3545725ab0b4ae47dbac739e11eb023fd961dc823a19fa48be37e544c037ea30
MD5 d4c65a72af944c4c5c8970c717353eb1
BLAKE2b-256 2c6c63f32a9a4240d3f1883e8858ee74722351563e239068742cc6fc4bbddadc

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