Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Code samples used on cloud.google.com

License

NotificationsYou must be signed in to change notification settings

GoogleCloudPlatform/python-docs-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Python samples forGoogle Cloud Platform products.

Build StatusBuild StatusBuild StatusBuild StatusBuild StatusBuild Status

Google Cloud Samples

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

Setup

  1. Installpip andvirtualenv 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 theoauth2 flow (read more about the commandhere):

    gcloud auth application-default login

    Read more aboutGoogle 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 envsource 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 theContributing Guide.

About

Code samples used on cloud.google.com

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors645


[8]ページ先頭

©2009-2025 Movatter.jp