8000 Added Link to Python Setup Guide (#1158) · johnmanong/python-docs-samples@1a602ce · GitHub
[go: up one dir, main page]

Skip to content

Commit 1a602ce

Browse files
michaelawyuJon Wayne Parrott
authored andcommitted
Added Link to Python Setup Guide (GoogleCloudPlatform#1158)
* Update Readme.rst to add Python setup guide As requested in b/64770713. This sample is linked in documentation https://cloud.google.com/bigtable/docs/scaling, and it would make more sense to update the guide here than in the documentation. * Update README.rst * Update README.rst * Update README.rst * Update README.rst * Update README.rst * Update install_deps.tmpl.rst * Updated readmegen scripts and re-generated related README files * Fixed the lint error
1 parent 4ff0515 commit 1a602ce

File tree

43 files changed

+164
-44
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+164
-44
lines changed

bigquery/api/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

bigquery/rest/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

bigtable/hello/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

bigtable/hello_happybase/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ credentials for applications.
3434
Install Dependencies
3535
++++++++++++++++++++
3636

37-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
37+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
38+
39+
.. _Python Development Environment Setup Guide:
40+
https://cloud.google.com/python/setup
3841

3942
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
4043

bigtable/metricscaler/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ credentials for applications.
3131
Install Dependencies
3232
++++++++++++++++++++
3333

34-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
34+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
35+
36+
.. _Python Development Environment Setup Guide:
37+
https://cloud.google.com/python/setup
3538

3639
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3740

container_engine/api-client/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

datastore/cloud-client/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

dns/api/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

error_reporting/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ credentials for applications.
2828
Install Dependencies
2929
++++++++++++++++++++
3030

31-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
31+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
32+
33+
.. _Python Development Environment Setup Guide:
34+
https://cloud.google.com/python/setup
3235

3336
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3437

iot/api-client/manager/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

iot/api-client/scripts/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
< 10000 span class="pl-mh">++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

kms/api-client/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

language/api/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

language/cloud-client/v1/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ credentials for applications.
3131
Install Dependencies
3232
++++++++++++++++++++
3333

34-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
34+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
35+
36+
.. _Python Development Environment Setup Guide:
37+
https://cloud.google.com/python/setup
3538

3639
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3740

language/cloud-client/v1beta2/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ credentials for applications.
3131
Install Dependencies
3232
++++++++++++++++++++
3333

34-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
34+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
35+
36+
.. _Python Development Environment Setup Guide:
37+
https://cloud.google.com/python/setup
3538

3639
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3740

language/tutorial/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

logging/cloud-client/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

monitoring/api/v2/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

monitoring/api/v3/api-client/README.rst

Lines changed: 4 additio F438 ns & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

monitoring/api/v3/cloud-client/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ credentials for applications.
2929
Install Dependencies
3030
++++++++++++++++++++
3131

32-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
32+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
33+
34+
.. _Python Development Environment Setup Guide:
35+
https://cloud.google.com/python/setup
3336

3437
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3538

pubsub/cloud-client/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

scripts/readme-gen/templates/install_deps.tmpl.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
Install Dependencies
22
++++++++++++++++++++
33

4-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
4+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
5+
6+
.. _Python Development Environment Setup Guide:
7+
https://cloud.google.com/python/setup
58

69
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
710

spanner/cloud-client/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

speech/cloud-client/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ credentials for applications.
3131
Install Dependencies
3232
++++++++++++++++++++
3333

34-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
34+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
35+
36+
.. _Python Development Environment Setup Guide:
37+
https://cloud.google.com/python/setup
3538

3639
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3740

storage/api/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

storage/cloud-client/README.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

@@ -254,7 +257,7 @@ To run this sample:
254257
$ gcloud beta pubsub subscriptions create testsubscription --topic=testtopic
255258
256259
6. Run this program:
257-
$ python notification_polling my-project-id testsubscription
260+
$ python notification_polling.py my-project-id testsubscription
258261
259262
7. While the program is running, upload and delete some files in the testbucket
260263
bucket (you could use the console or gsutil) and watch as changes scroll by

storage/transfer_service/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ credentials for applications.
2828
Install Dependencies
2929
++++++++++++++++++++
3030

31-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
31+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
32+
33+
.. _Python Development Environment Setup Guide:
34+
https://cloud.google.com/python/setup
3235

3336
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3437

translate/cloud-client/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

video/cloud-client/analyze/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

video/cloud-client/analyze/analyze_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
# limitations under the License.
1616

1717
import os
18-
import analyze
1918
import pytest
19+
import analyze
2020

2121

2222
BUCKET = os.environ['CLOUD_STORAGE_BUCKET']

video/cloud-client/faces/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ credentials for applications.
2727
Install Dependencies
2828
++++++++++++++++++++
2929

30-
#. Install `pip`_ and `virtualenv`_ if you do not already have them.
30+
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
31+
32+
.. _Python Development Environment Setup Guide:
33+
https://cloud.google.com/python/setup
3134

3235
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
3336

video/cloud-client/faces/faces_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
# limitations under the License.
1616

1717
import os
18-
import faces
1918
import pytest
19+
import faces
2020

2121

2222
BUCKET = os.environ['CLOUD_STORAGE_BUCKET']

0 commit comments

Comments
 (0)
0