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
- 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.5 - Cache values 1.1.4 - New API ...
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.1.6.tar.gz
(4.2 kB
view details)
File details
Details for the file pyipma-1.1.6.tar.gz
.
File metadata
- Download URL: pyipma-1.1.6.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bb0400d906cc2f2b21851802902d39a24015f05af9fff052945bb1f46047f88 |
|
MD5 | cdc52f600d05df3b5213051564fe06d7 |
|
BLAKE2b-256 | 7de33816b18d1a7f096f106f0f0c9696d6991a1a862a28965b94ddd0bda01b31 |