作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在 AppEngine Python3.7 标准中启动了新应用。
我正在尝试使用以下代码片段获取凭据,但失败了。
任何人都能够在 GAE 标准 Python37 中获得证书
?
输入:
from google.auth import app_engine
credentials = app_engine.Credentials()
输出:
The App Engine APIs are not available
最佳答案
将 App Engine Standard 与 python 3.7 结合使用时,没有任何 google.xxx 库可用。您必须构建自己的或使用标准的 Python 库。这适用于:auth
、users
、images
、search
、mail
、taskqueue
、memcache
、urlfetch
、deferred
等,甚至还有 ndb
datastore界面。
对于数据存储,您使用 google-cloud-datastore
或一些第 3 方。
对于其他人,您使用标准的 Python 库,例如:google.auth
=> rauth
, google.appengine.api.memcache
=> python-memcached
在这里阅读更多:https://cloud.google.com/appengine/docs/standard/python3/python-differences
该页面推荐使用 Google Identity Platform 或 Firebase Authentication 进行授权。
关于python - 如何在 Google AppEngine Python37 中获取凭据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51799366/
我是一名优秀的程序员,十分优秀!