windows 版本 dev_appserver.py 用于 python3 google 应用程序引擎的可用性
Availability of windows version of dev_appserver.py for python3 google app-engine
Google 应用引擎文档说 “dev_appserver 工具不支持在 Windows 上开发 Python 3 个应用”(见[此处])。但它适用于 python 2.7。本地测试需要它。
它会永远可用吗?如果是,什么时候?
我希望 Google 对此更清楚、更明确,但我不这么认为。
使用 Python 3 GAE,所有 GAE-specific 东西(数据存储、任务队列等)都已移至 APIs,您安装 python 库到使用它们的方式与您与任何 third-party API.
互动的方式相同
您 运行 您的应用程序在本地服务器的命令行上。你应该有一个类似这样的文件:
from myapp import app
if __name__ == '__main__':
app.run(host='127.0.0.1', debug=True)
而你只是运行这样
python main.py
为了与 GAE 交互,您应该有一个测试项目,并在本地 运行ning 时使用测试项目凭据。
很多人推荐了Waitress. It's not a GAE simulator but it helps with WSGI if you're on Windows and can't use Gunicorn。
Google 应用引擎文档说 “dev_appserver 工具不支持在 Windows 上开发 Python 3 个应用”(见[此处])。但它适用于 python 2.7。本地测试需要它。
它会永远可用吗?如果是,什么时候?
我希望 Google 对此更清楚、更明确,但我不这么认为。
使用 Python 3 GAE,所有 GAE-specific 东西(数据存储、任务队列等)都已移至 APIs,您安装 python 库到使用它们的方式与您与任何 third-party API.
互动的方式相同您 运行 您的应用程序在本地服务器的命令行上。你应该有一个类似这样的文件:
from myapp import app
if __name__ == '__main__':
app.run(host='127.0.0.1', debug=True)
而你只是运行这样
python main.py
为了与 GAE 交互,您应该有一个测试项目,并在本地 运行ning 时使用测试项目凭据。
很多人推荐了Waitress. It's not a GAE simulator but it helps with WSGI if you're on Windows and can't use Gunicorn。