谷歌的App Engine SDK与Cloud SDK的关系是什么?

时间:2023-01-24 00:07:00

I'm developing a Google App Engine application and I am encountering references to both an App Engine SDK and a Cloud SDK.

我正在开发一个谷歌应用程序引擎应用程序,我遇到了对应用程序引擎SDK和云SDK的引用。

How do these two SDKs relate to each other?

这两个sdk是如何相互关联的呢?

There is definitely some overlap between the two. There is a dev_appserver.py and appcfg.py is both of them. I can run a development server using dev_appserver.py, and also with gcloud preview app run.

两者之间肯定有重叠。有一个dev_appserver。py和appcfg。py都是。我可以使用dev_appserver运行一个开发服务器。py,还有gcloud预览应用运行。

Why are there two tools that do the same thing? Is one being deprecated in favor of the other? Is there a roadmap for merging the toolsets, or are they going to be maintained in parallel? Do I need both, or just one?

为什么有两种工具做同样的事情?一个被弃用,另一个被弃用?是否有用于合并工具集的路线图,或者它们是否将保持并行?我需要两个,还是一个?

It seems like the Cloud SDK is the more general of the two. But is it a superset? I.e. can I do anything I can in the App Engine SDK with the Cloud SDK?

云SDK似乎是两者中比较通用的。但这是一个超集吗?也就是说,我可以在App Engine SDK中使用云SDK做任何我能做的事情吗?

I'm very confused by this messy and undocumented setup.

我对这种混乱的、没有记录的设置感到很困惑。

2 个解决方案

#1


11  

The App Engine SDK is older and was designed specifically for App Engine.

App Engine SDK较早,是专门为App Engine设计的。

The Cloud SDK is newer and its goal is to cover other (all?) Google Cloud products, not only App Engine. So they definitely overlap in functionality from the App Engine's perspective. Specifically from this perspective the Cloud SDK appears not yet as mature and stable as the App Engine SDK. For example the gcloud preview portion is still at a BETA version:

云SDK更新了,它的目标是覆盖其他(全部?)谷歌云产品,不仅仅是App引擎。所以从应用引擎的角度来看,它们在功能上是重叠的。特别是从这个角度来看,云SDK还没有应用引擎SDK那么成熟和稳定。例如,gcloud预览部分仍然是BETA版本:

NAME

的名字

gcloud preview app - (BETA) manage your App Engine app

As long as your work would be contained in the App Engine environment you can pick either of them, as you prefer.

只要你的工作被包含在App Engine环境中,你就可以选择其中任意一个。

If you throw in the mix third party tools or IDEs integration support the balance tips towards the App Engine SDK for now (PyCharm, for example).

如果您加入了混合第三方工具或ide集成,那么现在就支持应用程序引擎SDK的平衡技巧(例如PyCharm)。

I guess Google will eventually deprecate the App Engine SDK in favour of the Could SDK, but so far I didn't hear any such announcement. A similar deprecation trend already started in the (old) GAE Console - stuff being gradually migrated to the Developer Console.

我想谷歌最终会弃用App Engine SDK,转而支持can SDK,但到目前为止我还没有听到任何这样的声明。(旧的)GAE控制台已经开始了类似的弃用趋势——逐渐迁移到开发人员控制台。

#2


1  

Documentation says

文档中说的一样

The preferred tooling for managing your App Engine applications in PHP is now the Google Cloud SDK. The Google Cloud SDK includes a local development server as well as the tooling for deploying and managing your applications in App Engine. Optionally, you can also download the original App Engine SDK for PHP.Optionally, you can also download the original App Engine SDK for PHP.

在PHP中管理应用程序引擎应用程序的首选工具是谷歌云SDK。谷歌云SDK包括一个本地开发服务器,以及在App Engine中部署和管理应用程序的工具。另外,您还可以下载PHP的原始应用程序引擎SDK。此外,您还可以为PHP下载原始的应用程序引擎SDK。

Though this is for PHP, I believe similar upgradation for other languages too.

虽然这是针对PHP的,但我认为其他语言也有类似的升级。

#1


11  

The App Engine SDK is older and was designed specifically for App Engine.

App Engine SDK较早,是专门为App Engine设计的。

The Cloud SDK is newer and its goal is to cover other (all?) Google Cloud products, not only App Engine. So they definitely overlap in functionality from the App Engine's perspective. Specifically from this perspective the Cloud SDK appears not yet as mature and stable as the App Engine SDK. For example the gcloud preview portion is still at a BETA version:

云SDK更新了,它的目标是覆盖其他(全部?)谷歌云产品,不仅仅是App引擎。所以从应用引擎的角度来看,它们在功能上是重叠的。特别是从这个角度来看,云SDK还没有应用引擎SDK那么成熟和稳定。例如,gcloud预览部分仍然是BETA版本:

NAME

的名字

gcloud preview app - (BETA) manage your App Engine app

As long as your work would be contained in the App Engine environment you can pick either of them, as you prefer.

只要你的工作被包含在App Engine环境中,你就可以选择其中任意一个。

If you throw in the mix third party tools or IDEs integration support the balance tips towards the App Engine SDK for now (PyCharm, for example).

如果您加入了混合第三方工具或ide集成,那么现在就支持应用程序引擎SDK的平衡技巧(例如PyCharm)。

I guess Google will eventually deprecate the App Engine SDK in favour of the Could SDK, but so far I didn't hear any such announcement. A similar deprecation trend already started in the (old) GAE Console - stuff being gradually migrated to the Developer Console.

我想谷歌最终会弃用App Engine SDK,转而支持can SDK,但到目前为止我还没有听到任何这样的声明。(旧的)GAE控制台已经开始了类似的弃用趋势——逐渐迁移到开发人员控制台。

#2


1  

Documentation says

文档中说的一样

The preferred tooling for managing your App Engine applications in PHP is now the Google Cloud SDK. The Google Cloud SDK includes a local development server as well as the tooling for deploying and managing your applications in App Engine. Optionally, you can also download the original App Engine SDK for PHP.Optionally, you can also download the original App Engine SDK for PHP.

在PHP中管理应用程序引擎应用程序的首选工具是谷歌云SDK。谷歌云SDK包括一个本地开发服务器,以及在App Engine中部署和管理应用程序的工具。另外,您还可以下载PHP的原始应用程序引擎SDK。此外,您还可以为PHP下载原始的应用程序引擎SDK。

Though this is for PHP, I believe similar upgradation for other languages too.

虽然这是针对PHP的,但我认为其他语言也有类似的升级。