GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PatrickLaban/python-docs-samples: Code samples used on cloud.google.com

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

4,833 Commits
4,833 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.kokoro
.kokoro
 
 
appengine
appengine
 
 
asset
asset
 
 
auth
auth
 
 
automl
automl
 
 
bigquery
bigquery
 
 
bigquery_storage/to_dataframe
bigquery_storage/to_dataframe
 
 
billing
billing
 
 
blog
blog
 
 
cdn
cdn
 
 
cloud-sql
cloud-sql
 
 
codelabs
codelabs
 
 
composer
composer
 
 
compute
compute
 
 
container_registry/container_analysis
container_registry/container_analysis
 
 
data-science-onramp
data-science-onramp
 
 
datacatalog/cloud-client
datacatalog/cloud-client
 
 
dataflow
dataflow
 
 
datalabeling
datalabeling
 
 
dataproc
dataproc
 
 
datastore
datastore
 
 
dialogflow/cloud-client
dialogflow/cloud-client
 
 
dlp
dlp
 
 
dns/api
dns/api
 
 
document
document
 
 
endpoints
endpoints
 
 
error_reporting
error_reporting
 
 
eventarc
eventarc
 
 
firestore
firestore
 
 
functions
functions
 
 
healthcare/api-client
healthcare/api-client
 
 
iam/api-client
iam/api-client
 
 
iap
iap
 
 
iot/api-client
iot/api-client
 
 
jobs
jobs
 
 
kms
kms
 
 
kubernetes_engine
kubernetes_engine
 
 
language
language
 
 
logging/cloud-client
logging/cloud-client
 
 
media
media
 
 
memorystore/redis
memorystore/redis
 
 
ml_engine
ml_engine
 
 
monitoring
monitoring
 
 
notebooks
notebooks
 
 
opencensus
opencensus
 
 
people-and-planet-ai
people-and-planet-ai
 
 
profiler
profiler
 
 
pubsub
pubsub
 
 
pubsublite/spark-connector
pubsublite/spark-connector
 
 
run
run
 
 
scheduler
scheduler
 
 
scripts
scripts
 
 
secretmanager
secretmanager
 
 
servicedirectory
servicedirectory
 
 
spanner
spanner
 
 
speech
speech
 
 
storage
storage
 
 
tables
tables
 
 
tasks
tasks
 
 
testing
testing
 
 
texttospeech/cloud-client
texttospeech/cloud-client
 
 
trace
trace
 
 
translate
translate
 
 
video/cloud-client
video/cloud-client
 
 
vision/cloud-client
vision/cloud-client
 
 
workflows/cloud-client
workflows/cloud-client
 
 
.gitignore
.gitignore
 
 
.trampolinerc
.trampolinerc
 
 
.trampolinerc_tmpl
.trampolinerc_tmpl
 
 
AUTHORING_GUIDE.md
AUTHORING_GUIDE.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
ISSUE_TEMPLATE.md
ISSUE_TEMPLATE.md
 
 
LICENSE
LICENSE
 
 
MAC_SETUP.md
MAC_SETUP.md
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
favicon.ico
favicon.ico
 
 
noxfile-template.py
noxfile-template.py
 
 
noxfile_config.py
noxfile_config.py
 
 
pytest.ini
pytest.ini
 
 
renovate.json
renovate.json
 
 

Repository files navigation

Google Cloud Platform Python Samples

Python samples for Google Cloud Platform products.

Build Status Build Status Build Status Build Status

Setup

  1. Install pip and virtualenv if you do not already have them.

  2. Clone this repository:

    git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git
    
  3. Obtain authentication credentials.

    Create local credentials by running the following command and following the oauth2 flow (read more about the command here):

    gcloud auth application-default login
    

    Read more about Google Cloud Platform Authentication.

How to run a sample

  1. Change directory to one of the sample folders, e.g. logging/cloud-client:

    cd logging/cloud-client/
    
  2. Create a virtualenv. Samples are compatible with Python 3.6+.

    python3 -m venv env
    source env/bin/activate
    
  3. Install the dependencies needed to run the samples.

    pip install -r requirements.txt
    
  4. Run the sample:

    python snippets.py
    

Contributing

Contributions welcome! See the Contributing Guide.

About

Code samples used on cloud.google.com

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.