Skip to content

Instantly share code, notes, and snippets.

View nrchandan's full-sized avatar

Chandan Kumar nrchandan

  • ThoughtWorks India Pvt. Ltd.
  • Hyderabad, India
View GitHub Profile
@jdiaz5513
jdiaz5513 / gae_remote_api_helper.py
Last active December 2, 2016 12:36
A script for Google App Engine remote_api shell that automatically creates a connection and drops you to the shell. I created this script for people who use the remote_api shell a lot; it saves me a lot of time. The best part is, it works with alternative Python shells like iPython!
#!/usr/bin/python2
"""
This script automates the task of connecting to a running App Engine server,
whether it's a local dev_appserver or a live app.
If PyQt4 is installed, it will ask for credentials inside a dialog box
instead of prompting in the terminal. This is good for shells that do
not support getpass (iPython).
It will automatically add an import path for a local virtualenv in the app