Python library to retrieve information from Instituto Português do Mar e Atmosfera.
Project description
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.614,-8.642)
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())
Copyright
(C) 2018 Diogo Gomes diogogomes@gmail.com
Project details
Release history Release notifications | RSS feed
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.0.2.tar.gz
(3.1 kB
view details)
Built Distribution
pyipma-1.0.2-py3.6.egg
(6.8 kB
view details)
File details
Details for the file pyipma-1.0.2.tar.gz
.
File metadata
- Download URL: pyipma-1.0.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5a0102e240c2e519dfedec6d9c102a2b822bcb37db67216f54130410d98ecef |
|
MD5 | e1d79b5bc4a529ce72eb167781341387 |
|
BLAKE2b-256 | bd40c969de34de86969013ff3cc094d4b5ed30a5f2ff0a827aaccaaf10e993cd |
File details
Details for the file pyipma-1.0.2-py3.6.egg
.
File metadata
- Download URL: pyipma-1.0.2-py3.6.egg
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1c27cbad463900f437336213c88f0fd233f7cd8299cc734870c0c316dccd789 |
|
MD5 | da7ff059fe51b2647b932ea20c4c49a5 |
|
BLAKE2b-256 | 582594945a0cf5f4a0d7b8bc0d9f545fce5ca53d6950c19c3a2afed2de32b0ee |