-
Notifications
You must be signed in to change notification settings - Fork 6.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More consistency and standardization improvements.
* Adding argparse/docstring to cloud storage and monitoring samples. * Updating readmes for BigQuery, Monitoring, Cloud Storage, and the Blog. * Removing all non-appengine requirements.txt files and consolidating into a single top-level requirements.txt. This makes it easier for us to verify that the samples work with the latest version of all dependent libraries. * Moved test dependences out of tox.ini and into requirements-dev.txt, as per standard practice.
- Loading branch information
Jon Wayne Parrott
authored and
Shun Fan
committed
Sep 18, 2015
1 parent
dc389fb
commit d6a3597
Showing
16 changed files
with
193 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
blog/introduction_to_data_models_in_cloud_datastore/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
blog/introduction_to_data_models_in_cloud_datastore/requirements.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Google Cloud Monitoring Samples | ||
|
||
This section contains samples for [Google Cloud Monitoring](https://cloud.google.com/monitoring). | ||
|
||
## Running the samples | ||
|
||
1. Your environment must be setup with [authentication | ||
information](https://developers.google.com/identity/protocols/application-default-credentials#howtheywork). *Note* that Cloud Monitoring does not currently work | ||
with `gcloud auth`. You will need to use a *service account* when running | ||
locally and set the `GOOGLE_APPLICATION_CREDENTIALS` environment variable. | ||
|
||
$ export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service_account.json | ||
|
||
2. Install dependencies from the top-level [`requirements.txt`](../requirements.txt): | ||
|
||
$ pip install -r requirements.txt | ||
|
||
3. Depending on the sample, you may also need to create resources on the [Google Developers Console](https://console.developers.google.com). Refer to the sample description and associated documentation page. | ||
|
||
## Additional resources | ||
|
||
For more information on Cloud Monitoring you can visit: | ||
|
||
> https://cloud.google.com/monitoring | ||
For more information on the Cloud Monitoring API Python library surface you | ||
can visit: | ||
|
||
> https://developers.google.com/resources/api-libraries/documentation/storage/v2beta2/python/latest/ | ||
For information on the Python Client Library visit: | ||
|
||
> https://developers.google.com/api-client-library/python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
beautifulsoup4==4.4.0 | ||
coverage==3.7.1 | ||
Flask==0.10.1 | ||
funcsigs==0.4 | ||
itsdangerous==0.24 | ||
Jinja2==2.8 | ||
MarkupSafe==0.23 | ||
mock==1.3.0 | ||
nose==1.3.7 | ||
nose-exclude==0.4.1 | ||
nosegae==0.5.7 | ||
pbr==1.8.0 | ||
PyYAML==3.11 | ||
waitress==0.8.10 | ||
WebOb==1.4.1 | ||
WebTest==2.0.18 | ||
Werkzeug==0.10.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
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 | ||
rsa==3.1.4 | ||
simplejson==3.6.5 | ||
gcloud==0.7.1 | ||
google-api-python-client==1.4.2 | ||
google-apitools==0.4.11 | ||
httplib2==0.9.1 | ||
oauth2client==1.5.1 | ||
protobuf==3.0.0a1 | ||
protorpc==0.11.1 | ||
pyasn1==0.1.8 | ||
pyasn1-modules==0.0.7 | ||
pycrypto==2.6.1 | ||
rsa==3.2 | ||
simplejson==3.8.0 | ||
six==1.9.0 | ||
tox==1.9.0 | ||
uritemplate==0.6 | ||
virtualenv==12.0.7 | ||
wsgiref==0.1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,31 @@ | ||
## Python Samples for Google Cloud Storage | ||
# Google Cloud Storage Samples | ||
|
||
Two samples: | ||
This section contains samples for [Google Cloud Storage](https://cloud.google.com/storage). | ||
|
||
1. ``list_objects.py`` lists objects in a bucket. | ||
2. ``compose_objects.py`` composes objects together to create another. | ||
## Running the samples | ||
|
||
See the docstring for each sample for usage, or run the sample for the help text. | ||
1. Your environment must be setup with [authentication | ||
information](https://developers.google.com/identity/protocols/application-default-credentials#howtheywork). If you're running in your local development environment and you have the [Google Cloud SDK](https://cloud.google.com/sdk/) installed, you can do this easily by running: | ||
|
||
### Setup | ||
$ gcloud auth login | ||
|
||
Before running the samples, you'll need the Google Cloud SDK in order to setup authentication. | ||
2. Install dependencies from the top-level [`requirements.txt`](../requirements.txt): | ||
|
||
1. Install the [Google Cloud SDK](https://cloud.google.com/sdk/), including the [gcloud tool](https://cloud.google.com/sdk/gcloud/), and [gcloud app component](https://cloud.google.com/sdk/gcloud-app). | ||
2. Setup the gcloud tool. | ||
$ pip install -r requirements.txt | ||
|
||
``` | ||
gcloud components update app | ||
gcloud auth login | ||
gcloud config set project <your-app-id> | ||
``` | ||
3. Depending on the sample, you may also need to create resources on the [Google Developers Console](https://console.developers.google.com). Refer to the sample description and associated documentation page. | ||
|
||
You will also need to install the dependencies using [pip](https://pypi.python.org/pypi/pip): | ||
## Additional resources | ||
|
||
``` | ||
pip install -r requirements.txt | ||
``` | ||
For more information on Cloud Storage you can visit: | ||
|
||
> https://cloud.google.com/storage | ||
For more information on the Cloud Storage API Python library surface you | ||
can visit: | ||
|
||
> https://developers.google.com/resources/api-libraries/documentation/storage/v1/python/latest/ | ||
For information on the Python Client Library visit: | ||
|
||
> https://developers.google.com/api-client-library/python |
Oops, something went wrong.