Add support for google-auth and remove Python 2.6 support (#319)

* `discovery.build` and `discovery.build_from_document` now accept both oauth2client credentials and google-auth credentials.
* `discovery.build` and `discovery.build_from_document` now unambiguously use the http argument for *all* requests, including the request to get the discovery document.
* The `http` and `credentials` arguments to `discovery.build` and `discovery.build_from_document` are now mutally exclusive.
* If neither `http` or `credentials` is specified to `discovery.build` and `discovery.build_from_document`, then Application Default Credentials will be used.
* oauth2client is still the "default" authentication library.
7 files changed
tree: d3f8f33d4865e0c94525b9557d4464ba165be3d0
  1. .github/
  2. apiclient/
  3. docs/
  4. googleapiclient/
  5. samples/
  6. static/
  7. tests/
  8. tools/
  9. .coveragerc
  10. .gitignore
  11. .gitmodules
  12. .hgignore
  13. .travis.yml
  14. CHANGELOG
  15. describe.py
  16. expandsymlinks.py
  17. LICENSE
  18. Makefile
  19. MANIFEST.in
  20. README.md
  21. samples-index.py
  22. setup.py
  23. sitecustomize.py
  24. tox.ini
README.md

About

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.

Installation

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 Version

Python 2.6 or 2.7 are fully supported.

Python 3.3 and 3.4 are supported and tested. This library may work on later versions of 3, but we do not currently run tests against those versions.

Third Party Libraries and Dependencies

The following libraries will be installed when you install the client library:

For development you will also need the following libraries:

Contributing

Please see the contributing page for more information. In particular, we love pull requests - but please make sure to sign the contributor license agreement.