Skip to content

Latest commit

 

History

History
 
 

README.md

Python Samples for Google Cloud Storage

Two samples:

  1. list_objects.py lists objects in a bucket.
  2. compose_objects.py composes objects together to create another.

See the docstring for each sample for usage, or run the sample for the help text.

Setup

Before running the samples, you'll need the Google Cloud SDK in order to setup authentication.

  1. Install the Google Cloud SDK, including the gcloud tool, and gcloud app component.

  2. Setup the gcloud tool.

    gcloud components update app
    gcloud auth login
    gcloud config set project <your-app-id>
    

You will also need to install the dependencies using pip:

pip install -r requirements.txt