没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > python-weather |
python-weather
|
0 | 0 | 6 |
贡献者 | 讨论 | 代码提交 |
概述
Weather Observations in PythonPython-weather provides web and Python API access to observed current weather conditions from the National Oceanic and Atmospheric Administration for around 2000+ locations across the United States and US Territories. Program parses XML feeds from zip file on disk or live from the web. At the API level, it parses observations into python dictionary format with the Weather.Station class. Module includes WSGI and CGI applications.Practical Usage>>> import Weather
>>> station = Weather.location2station('baltimore,md')
>>> station
>>> station['weather'],station['temp_f'],station['observation_time']
('Partly Cloudy',69.0,'Last Updated on Aug 23, 4:51 am EDT')ApiUsageLocalizationIntegrationWebApplications
创建时间:2014-05-11 04:41