This sample demonstrates authenticating to BigQuery in App Engine using OAuth2.
-
To install dependencies for this sample, run:
$ pip install -t lib -r requirements.txt -
You must then update
main.pyand replace<your-project-id>with your project's ID. -
You'll need a client id from your project - instructions here. Once you've downloaded the client's json secret, copy it to the root directory of this project, and rename it to
client_secrets.json. -
You can then run the sample on your development server:
$ dev_appserver.py .Or deploy the application:
$ appcfg.py update .