GithubHelp home page GithubHelp logo

classicvalues / python-docs-samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/python-docs-samples

1.0 1.0 0.0 75.99 MB

Code samples used on cloud.google.com

License: Apache License 2.0

Python 85.10% Shell 2.13% CSS 0.23% HTML 1.97% JavaScript 0.72% Makefile 0.03% Dockerfile 1.47% Jupyter Notebook 8.30% Jinja 0.05%

python-docs-samples's Introduction

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.

python-docs-samples's People

Contributors

renovate-bot avatar dpebot avatar leahecole avatar gguuss avatar waprin avatar engelke avatar jerjou avatar tswast avatar nnegrey avatar anguillanneuf avatar averikitsch avatar andrewsg avatar noerog avatar dizcology avatar busunkim96 avatar elibixby avatar alixhami avatar davidcavazos avatar frankyn avatar kurtisvg avatar ryanmats avatar surferjeffatgoogle avatar grant avatar puneith avatar jeffmendoza avatar merla18 avatar dinagraves avatar crwilcox avatar glasnt avatar puneithk avatar

Stargazers

Classic Values avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.