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 - Reality2byte/python-docs-samples: Code samples used on cloud.google.com

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

12,248 Commits
12,248 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.internal/tests/fixtures
.internal/tests/fixtures
 
 
.kokoro
.kokoro
 
 
alloydb
alloydb
 
 
alm/ui-examples
alm/ui-examples
 
 
aml-ai
aml-ai
 
 
appengine
appengine
 
 
asset/snippets
asset/snippets
 
 
auth
auth
 
 
automl
automl
 
 
batch
batch
 
 
bigquery-connection/snippets
bigquery-connection/snippets
 
 
bigquery-datatransfer/snippets
bigquery-datatransfer/snippets
 
 
bigquery-migration/snippets
bigquery-migration/snippets
 
 
bigquery-reservation/snippets
bigquery-reservation/snippets
 
 
bigquery
bigquery
 
 
bigquery_storage
bigquery_storage
 
 
billing
billing
 
 
blog
blog
 
 
cdn
cdn
 
 
cloud-media-livestream/keypublisher
cloud-media-livestream/keypublisher
 
 
cloud-sql
cloud-sql
 
 
cloud_scheduler/snippets
cloud_scheduler/snippets
 
 
cloud_tasks
cloud_tasks
 
 
cloudbuild
cloudbuild
 
 
composer
composer
 
 
compute
compute
 
 
connectgateway
connectgateway
 
 
contact-center-insights/snippets
contact-center-insights/snippets
 
 
container
container
 
 
containeranalysis/snippets
containeranalysis/snippets
 
 
contentwarehouse
contentwarehouse
 
 
datacatalog
datacatalog
 
 
dataflow
dataflow
 
 
datalabeling
datalabeling
 
 
dataplex
dataplex
 
 
dataproc/snippets
dataproc/snippets
 
 
datastore
datastore
 
 
developer-knowledge
developer-knowledge
 
 
dialogflow-cx
dialogflow-cx
 
 
dialogflow
dialogflow
 
 
discoveryengine
discoveryengine
 
 
dlp
dlp
 
 
documentai
documentai
 
 
endpoints
endpoints
 
 
enterpriseknowledgegraph
enterpriseknowledgegraph
 
 
error_reporting
error_reporting
 
 
eventarc
eventarc
 
 
firestore
firestore
 
 
functions
functions
 
 
geminidataanalytics/dataengineeringagent
geminidataanalytics/dataengineeringagent
 
 
gemma2
gemma2
 
 
genai
genai
 
 
generative_ai
generative_ai
 
 
healthcare/api-client
healthcare/api-client
 
 
iam
iam
 
 
iap
iap
 
 
iot
iot
 
 
jobs
jobs
 
 
kms
kms
 
 
kubernetes_engine
kubernetes_engine
 
 
language
language
 
 
logging
logging
 
 
managedkafka/snippets
managedkafka/snippets
 
 
media-translation
media-translation
 
 
media
media
 
 
media_cdn
media_cdn
 
 
memorystore
memorystore
 
 
model_armor
model_armor
 
 
model_garden
model_garden
 
 
monitoring
monitoring
 
 
notebooks
notebooks
 
 
optimization/snippets
optimization/snippets
 
 
parametermanager
parametermanager
 
 
people-and-planet-ai
people-and-planet-ai
 
 
practice-folder
practice-folder
 
 
privateca/snippets
privateca/snippets
 
 
profiler
profiler
 
 
pubsub
pubsub
 
 
pubsublite/spark-connector
pubsublite/spark-connector
 
 
recaptcha_enterprise
recaptcha_enterprise
 
 
retail
retail
 
 
run
run
 
 
scripts
scripts
 
 
secretmanager
secretmanager
 
 
securitycenter
securitycenter
 
 
service_extensions
service_extensions
 
 
servicedirectory
servicedirectory
 
 
spanner
spanner
 
 
speech
speech
 
 
storage
storage
 
 
storagecontrol
storagecontrol
 
 
storagetransfer
storagetransfer
 
 
tables
tables
 
 
talent
talent
 
 
testing
testing
 
 
texttospeech/snippets
texttospeech/snippets
 
 
tpu
tpu
 
 
trace
trace
 
 
translate/samples/snippets
translate/samples/snippets
 
 

Repository files navigation

Google Cloud Platform Python Samples

Python samples for Google Cloud Platform products.

Google Cloud Samples

Check out some of the samples found on this repository on the Google Cloud Samples page.

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
License

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

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.