Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Moving to module-based execution
  • Loading branch information
Jon Wayne Parrott
Jon Wayne Parrott committed Sep 15, 2015
commit e4f827c4c27c5ed753b678b391503aaeb4ce4dd5
8 changes: 8 additions & 0 deletions bigquery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

This section contains samples for [Google BigQuery](https://cloud.google.com/bigquery).

## Running the samples

These samples must be run as modules, for example:

```
$ python -m bigquery.samples.async_query [your-project-id] [your-query]
```

## Other Samples

* [Using BigQuery from Google App Engine](../appengine/bigquery).
2 changes: 1 addition & 1 deletion bigquery/samples/async_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import json
import uuid

from utils import get_service, paging, poll_job
from .utils import get_service, paging, poll_job


# [START async_query]
Expand Down
2 changes: 1 addition & 1 deletion bigquery/samples/export_data_to_cloud_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import argparse
import uuid

from utils import get_service, poll_job
from .utils import get_service, poll_job


# [START export_table]
Expand Down
2 changes: 1 addition & 1 deletion bigquery/samples/load_data_by_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import httplib2
from oauth2client.client import GoogleCredentials
from utils import get_service, poll_job
from .utils import get_service, poll_job


# [START make_post]
Expand Down
2 changes: 1 addition & 1 deletion bigquery/samples/load_data_from_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import json
import uuid

from utils import get_service, poll_job
from .utils import get_service, poll_job


# [START load_table]
Expand Down
2 changes: 1 addition & 1 deletion bigquery/samples/streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import uuid

from six.moves import input
from utils import get_service
from .utils import get_service


# [START stream_row_to_bigquery]
Expand Down
2 changes: 1 addition & 1 deletion bigquery/samples/sync_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import argparse
import json

from utils import get_service, paging
from .utils import get_service, paging


# [START sync_query]
Expand Down
8 changes: 4 additions & 4 deletions bigquery/requirements.txt → requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
argparse==1.2.1
google-api-python-client==1.3.2
httplib2==0.9
oauth2client==1.4.6
argparse>=1.2.1
google-api-python-client>=1.4.2
httplib2>=0.9.1
oauth2client>=1.5.1
py==1.4.26
pyasn1==0.1.7
pyasn1-modules==0.0.5
Expand Down