Appengine is not an interactive remote control script

I just found out that I can use remote_api_shell.py to interactively run commands in my remote applications.

I would like to use this feature to create local scripts that generate reports with data from a remote database.

I expected that I could execute a command, for example:

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

But I do not see any parameters in the remote_api_shell.py file that will be used to enter the python script. Is it possible?

+4
source share
2 answers

Since I thought it was interesting, I did this too:

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

Just replace

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

Then run your scripts with:

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

It accepts exactly the same parameters as remote_api_shell.py

+3
source

here I go, man, to save your life .. a plugin in the content from this essence: https://gist.github.com/gregorynicholas/6084846

+1
source

Source: https://habr.com/ru/post/1493526/


All Articles