Can you use GQL / Google DataStore outside of google appengine?
Question: Can I use GQl/DataStore in my local python app? I know I can use them locally
when running the dev_appserver.py when writing a webapp but now I don't want
to do anything web related and keep it all local with just my normal
pythonfile.py with no HTML interfacing. Is it possible to do this?


Answer: > The Remote API can also be used within local applications. This will allow
> you to write local applications that use App Engine services and access
> datastore. It is important to note that using the Remote API will incur
> quota usage on the application you are accessing.
>
> Before beginning, make sure the App Engine SDK is added to your Python path
> and Remote API is enabled in your App Engine application. The following
> example shows the use of OAuth 2.0 credentials to configure the Remote API:
    
    
    from google.appengine.ext.remote_api import remote_api_stub
    from helloworld import helloworld
    
    remote_api_stub.ConfigureRemoteApiForOAuth('your_app_id.appspot.com',
                                               '/_ah/remote_api')
    
    # Fetch the most recent 10 guestbook entries
    entries = helloworld.Greeting.all().order("-date").fetch(10)
    # Create our own guestbook entry
    helloworld.Greeting(content="A greeting").put()
    

Reference: <https://cloud.google.com/appengine/docs/python/tools/remoteapi>

