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.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
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.4.tar.gz
(3.5 kB
view details)
File details
Details for the file pyipma-1.0.4.tar.gz
.
File metadata
- Download URL: pyipma-1.0.4.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ac09b23faa7f9630d5836d736e79edf4a70cac60b54649ee7b671474a2d736a |
|
MD5 | 3de4c1b9057c8148644fcaa967eb8537 |
|
BLAKE2b-256 | 2917d2728493b6226cd520d551d7333b5bfbb1657180d38b3d0690d2ed0a96ea |