4

我刚刚了解到我可以用它remote_api_shell.py来交互式地在远程应用程序上运行命令。

我想利用这种能力来创建本地脚本,用远程数据库中的数据生成报告。

我期望能够运行如下命令:

remote_api_shell.py my-app-id --script usageReport.py

但是我在 remote_api_shell.py 中看不到任何将 python 脚本作为输入的选项。这可能吗?

4

2 回答 2

3

因为我觉得这很有趣,所以我也在这里做了一个:

https://gist.github.com/faisalraja/6136087

只需更换

GOOGLE_APP_ENGINE_SDK = None # with your sdk path
# unless you are running with it included

然后运行你的脚本:

./remote_api_script.py -r usageReport.py --email "email@example.com" --password "****" app-id

它接受与 remote_api_shell.py 完全相同的参数

于 2013-08-01T23:04:01.533 回答
1

来吧,伙计,即将挽救您的生命.. 来自此要点的内容中的插件:https ://gist.github.com/gregorynicholas/6084846

于 2013-07-25T23:52:10.423 回答