用于气象地下pws api的小型python模块

wunderground-pws的Python项目详细描述


天气地下pws python api

用于Weather Underground PWS的小python模块 原料药。

安装

$ pip3 install wunderground_pws

示例用法

fromdatetimeimportdatefrompprintimportpprintfromwunderground_pwsimportWUndergroundAPI,unitswu=WUndergroundAPI(api_key='my api key',default_station_id='KMAHANOV10',units=units.ENGLISH_UNITS,)print('Current status of my weather station:')pprint(wu.current()['observations'][0])print('Summary of last 7 days:')pprint(wu.summary())print('Detailed hourly history for the last 7 days:')pprint(wu.hourly())print('History for 4/20/2019:')pprint(wu.history(date(day=20,month=4,year=2019)))

建筑文档

$ pip3 install -r requirements-docs.txt
$ cd docs/
$ make html

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java语义理解递归反向字符串返回语句   java toString()方法打印空值   java大型IN子句   如何使用JavaSpring在JavaScriptjQuery中设置post路径   java ByteArrayOutputStream已上载到服务器   java为什么轮询在SocketIO上获取数据“无法加载请求的项”?   java源代码应该以UTF8格式保存   Java数据库轮询器?   在Java中将double转换为float   java AccessDeniedException:C:\Windows\System32\drivers\etc\hosts