commit | 860836fa383a49aa4e0d1bae5e7587414eb991ac | [log] [tgz] |
---|---|---|
author | Pepper Lebeck-Jobe <eljobe@gmail.com> | Fri Jun 12 20:42:23 2015 -0400 |
committer | Pepper Lebeck-Jobe <eljobe@gmail.com> | Fri Jun 12 20:42:23 2015 -0400 |
tree | dc30af3f66621fb8a0165f5deceb7cadc3c347e8 | |
parent | 30ecbd4b345b8972e1cd07146985a598b5b87150 [diff] |
Add a new_batch_http_request() method to services This method can be used to get a BatchHttpRequest object with the batch_uri calculated from the rootUrl and batchPath fields from the discovery doc. Without this change, users have to know what the batch url for newer api endpoints is. For example: batch = BatchHttpRequest(batch_uri=http://zoo.googleapis.com/batch) With this change, the syntax is easier: zoo = build('zoo', 'v1', http=http) batch = zoo.new_batch_http_request()
This is the Python client library for Google's discovery based APIs. To get started, please see the full documentation for this library. Additionally, dynamically generated documentation is available for all of the APIs supported by this library.
To install, simply use pip
or easy_install
:
$ pip install --upgrade google-api-python-client
or
$ easy_install --upgrade google-api-python-client
See the Developers Guide for more detailed instructions and additional documentation.
Python 2.6 or 2.7 are fully supported.
Python 3.3+ is also now supported! However, this library has not yet been used as thoroughly with Python 3, so we'd recommend testing before deploying with Python 3 in production.
The following libraries will be installed when you install the client library:
For development you will also need the following libraries:
Please see the contributing page for more information. In particular, we love pull requests - but please make sure to sign the contributor license agreement.