Skip to content

Latest commit

 

History

History

README.md

Python Samples for {{ metadata['repo']['name_pretty'] }}

This directory contains samples for {{ metadata['repo']['name_pretty'] }}, which may be used as a refererence for how to use this product. {% if metadata['repo']['custom_content'] is defined %} {{ metadata['repo']['custom_content']}}{% endif %}{% if metadata['repo']['samples']|length %} Samples, quickstarts, and other documentation are available at cloud.google.com. {% for sample in range(metadata['repo']['samples']|length) %}

{{ metadata['repo']['samples'][sample]['name']}}

{{ metadata['repo']['samples'][sample]['description']}} {% if metadata['repo']['samples'][sample]['runnable'] %}

Open in Cloud Shell

To run this sample:

  1. If this is your first time working with GCP products, you will need to set up the Cloud SDK or utilize Google Cloud Shell. This sample may require authetication{% if metadata['repo']['requires_billing'] %} and you will need to enable billing{% endif %}.

  2. Make a fork of this repo and clone the branch locally, then navigate to the sample directory you want to use.

  3. Install the dependencies needed to run the samples.

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

     python {{ metadata['repo']['samples'][sample]['file']}}
    

{% endif %} {% if 'show_help' in metadata['repo']['samples'][sample] and metadata['repo']['samples'][sample]['show_help'] and 'abs_path' in metadata['repo']['samples'][sample] %}{{get_help(metadata['repo']['samples'][sample]['abs_path'])|indent}}{% endif %} {% if metadata['repo']['samples'][sample]['custom_content'] is defined %}{{ metadata['repo']['samples'][sample]['custom_content'] }}{% endif %}{% endfor %}{% endif %}

Additional Information

{% if metadata['repo']|length %}{% if metadata['repo']['client_library'] %} These samples use the Google Cloud Client Library for Python.{% endif %} You can read the documentation for more details on API usage and use GitHub to browse the source and report issues.{% endif %}

Contributing

View the contributing guidelines, the Python style guide for more information.