This page contains information about getting started with the Cloud Storage API using the Google APIs Client Library for Python. In addition, you may be interested in the following documentation:
- Browse the PyDoc reference for the Cloud Storage API.
- Read the Developer's guide for the Google APIs Client Library for Python.
- Interact with this API in your browser using the APIs Explorer for the Cloud Storage API.
System requirements
-
Operating systems:
- Linux
- Mac OS X
- Windows
- Python 2.6 or Python 2.7
Installing the client library
You can either use a package manager or download and install the Python client library manually:
Managed installation
Use pip or setuptools to manage your installation (you might
need to run sudo
first):
- pip (preferred):
$ pip install --upgrade google-api-python-client
-
Setuptools:
Use the
easy_install
tool included in the setuptools package:$ easy_install --upgrade google-api-python-client
Manual installation
Download the latest client
library for Python, unpack the code, and run
python setup.py install
App Engine
Because Google App Engine
requires that all of the source files for a library must be
present in your App Engine project, there is a special
installation procedure for App Engine. To install the library and
all of its dependencies in an App Engine project, download the
file named
google-api-python-client-gae-N.M.zip
from
the
list of downloads, where N.M is the version number
of the latest release. Unzip that file into your project. For
example:
$ cd myproject $ unzip google-api-python-client-gae-1.2.zip