openweather:OpenWeatherMap.org 的基本 python 客户端

时间:2021-06-05 08:43:30
【文件属性】:
文件名称:openweather:OpenWeatherMap.org 的基本 python 客户端
文件大小:6KB
文件格式:ZIP
更新时间:2021-06-05 08:43:30
Python 警告: openweather 目前已损坏。 如果你想帮助它适应最新的 OpenWeatherMap API 2.5 版,请随时加入 。 一个基本的 OpenWeatherMap.org API 客户端。 关于实验性缓存的新闻: 存储库中的版本目前领先于 PyPy (0.9) 上发布的最新版本。 它具有缓存功能。 如果缓存未明确停用,则函数“get_historic_weather()”将从 API 获取的数据存储在 SQLite 数据库中。 在后续请求中,如果可用,则直接从数据库中获取数据。 为了停用缓存,请使用 ow = openweather . OpenWeather ( cache = False ) 并且为了显式设置缓存 DB 文件的路径,请使用 ow = openweather . OpenWeather ( cache = "path/to/cache.db"
【文件预览】:
openweather-master
----MANIFEST(67B)
----test.py(4KB)
----setup.py(631B)
----.gitignore(33B)
----README.md(3KB)
----openweather.py(9KB)

网友评论