烧瓶天气应用

时间:2021-02-18 00:58:21
【文件属性】:
文件名称:烧瓶天气应用
文件大小:3.78MB
文件格式:ZIP
更新时间:2021-02-18 00:58:21
Python 烧瓶天气应用 什么是flask-weather-app? 一个用Python 2.7编写SQLite和Flask支持的天气应用程序。 目前不兼容Python 3。 我需要运行什么应用程序? 假设您已经安装了Flask,如果没有或者如果您不想阅读,请运行以下命令: pip install -U Flask 鼓励使用virtualenv。 您还需要一个OpenWeatherMap API密钥。 你可以得到。 和库: pip install pyowm==2.3.2 如何使用? 在flask_weather_app.py文件中编辑配置。 告诉flask正确的应用程序: 打开您的终端并导出FLASK_APP环境变量: export FLASK_APP=flask_weather_app.py 对于Windows,请使用set而不是export。 启动外壳并运行以下命令:
【文件预览】:
flask-weather-app-master
----schema.sql(192B)
----LICENSE(1KB)
----city.list.json(18.32MB)
----README.md(1KB)
----flask_weather_app_tests.py(1KB)
----templates()
--------index.html(191B)
--------form-action.html(2KB)
--------layout.html(3KB)
----.gitignore(52B)
----flask_weather_app.py(6KB)
----static()
--------loading.gif(21KB)
--------style.css(2KB)

网友评论