I really like GAE's object-relational database tools, db and ndb. I am currently preparing to develop a server which needs to be hosted from a local machine outside of Google's cloud environment. Namely, I am planning to use a python flask server.
我非常喜欢GAE的对象关系数据库工具db和ndb。我目前正在准备开发一个服务器,它需要在谷歌的云环境之外的本地机器上托管。也就是说,我打算使用python flask服务器。
I've used other tools like SQLAlchemy to interact with a database, but I really prefer using ndb. Some searches about using ndb outside of GAE indicated google cloud support, but this is also not an option.
我使用SQLAlchemy等其他工具与数据库进行交互,但我更喜欢使用ndb。一些关于在GAE之外使用ndb的搜索表明谷歌云支持,但是这也不是一个选项。
Is it even possible to use ndb outside of the Appengine environment? Are there any examples of it being done?
是否有可能在Appengine环境之外使用ndb ?有这样的例子吗?
1 个解决方案
#1
2
Currently this can work using the Remote API. Note that the process for setting up Remote API is a little complicated and using it has some limitations.
目前,这可以使用远程API。注意,设置远程API的过程有点复杂,使用它有一些限制。
This article walks through the steps about how to set it up for db, however the process is the same for ndb.
本文介绍了如何为db设置它的步骤,但是对ndb来说过程是相同的。
#1
2
Currently this can work using the Remote API. Note that the process for setting up Remote API is a little complicated and using it has some limitations.
目前,这可以使用远程API。注意,设置远程API的过程有点复杂,使用它有一些限制。
This article walks through the steps about how to set it up for db, however the process is the same for ndb.
本文介绍了如何为db设置它的步骤,但是对ndb来说过程是相同的。