How to check available Python libraries on Google App Engine & add more?
如何在Google App Engine上检查可用的Python库并添加更多?
Is SQLite available or we must use GQL with their database system only?
是SQLite可用还是我们必须只在他们的数据库系统中使用GQL?
Thank you in advance.
先感谢您。
2 个解决方案
#1
SQLite is there (but since you cannot write to files, you must use it in a read-only way, or on a :memory:
database).
SQLite就在那里(但由于你无法写入文件,你必须以只读方式使用它,或者在:memory:database中使用它)。
App engine docs do a good job at documenting what's there. You can add any other pure-python library, typically as a zipfile of .py
(NOT .pyc
) files to upload in the main directory of your app (you can directly import from inside the zipfile, of course).
App引擎文档在记录存在的内容方面做得很好。您可以添加任何其他纯python库,通常作为.py(NOT .pyc)文件的zip文件上传到您的应用程序的主目录中(当然,您可以直接从zipfile中导入)。
A few more pure-Python third-party libraries included with app engine are listed and documented here -- the paragraph on zipimport at this URL has a bit more details on the ways and limitations of using zipfiles to add more third-party pure-Python libs to your app.
这里列出并记录了一些包含在app引擎中的纯Python第三方库 - 此URL上有关zipimport的段落有更多关于使用zipfiles添加更多第三方纯Python的方法和限制的详细信息libs到你的应用程序。
#2
Afaik, you can only use the GAE specific database.
Afaik,您只能使用GAE特定的数据库。
#1
SQLite is there (but since you cannot write to files, you must use it in a read-only way, or on a :memory:
database).
SQLite就在那里(但由于你无法写入文件,你必须以只读方式使用它,或者在:memory:database中使用它)。
App engine docs do a good job at documenting what's there. You can add any other pure-python library, typically as a zipfile of .py
(NOT .pyc
) files to upload in the main directory of your app (you can directly import from inside the zipfile, of course).
App引擎文档在记录存在的内容方面做得很好。您可以添加任何其他纯python库,通常作为.py(NOT .pyc)文件的zip文件上传到您的应用程序的主目录中(当然,您可以直接从zipfile中导入)。
A few more pure-Python third-party libraries included with app engine are listed and documented here -- the paragraph on zipimport at this URL has a bit more details on the ways and limitations of using zipfiles to add more third-party pure-Python libs to your app.
这里列出并记录了一些包含在app引擎中的纯Python第三方库 - 此URL上有关zipimport的段落有更多关于使用zipfiles添加更多第三方纯Python的方法和限制的详细信息libs到你的应用程序。
#2
Afaik, you can only use the GAE specific database.
Afaik,您只能使用GAE特定的数据库。