从Portugu_s do mar e atmosfera研究所检索信息的Python库。
pyipma的Python项目详细描述
PyIPMA
从Instituto Português do Mar e Atmosfera检索信息的python库
要求
- aiohttp
- Geopy
示例
importasyncioimportaiohttpfrompyipmaimportStationasyncdefmain():asyncwithaiohttp.ClientSession()assession:station=awaitStation.get(session,40.61,-8.64)print("Nearest station is {}".format(station.local))print("Current Weather:")print(awaitstation.observation())print("Next days:")forforecastinawaitstation.forecast():print(forecast)asyncio.get_event_loop().run_until_complete(main())
更改日志
1.1.6-解释-99且不可用 1.1.5-缓存值 1.1.4-新API …
学分
值从IPMA
版权所有
(c)2018年迪奥戈·戈梅斯diogogomes@gmail.com