Allow customizing the GCE metadata service address via an env var. (#704)

The goal here is to make it possible for a user of a binary that depends on
this library (eg the google cloud SDK) to be able to customize where it looks
for the GCE metadata service. (An adventurous user can already customize the
GCE metadata service location via the existing global vars in this library.)

The only bit of awkwardness here is really the test: since this is a top-level
statement, reloading is the only way to ensure it works.
3 files changed
tree: f90c1a0a8aeb25024c247763bd55969a45c3560d
  1. docs/
  2. oauth2client/
  3. samples/
  4. scripts/
  5. tests/
  6. .coveragerc
  7. .gitignore
  8. .travis.yml
  9. CHANGELOG.md
  10. CONTRIBUTING.md
  11. CONTRIBUTORS.md
  12. LICENSE
  13. Makefile
  14. MANIFEST.in
  15. README.md
  16. setup.cfg
  17. setup.py
  18. tox.ini
README.md

Build Status Coverage Status Documentation Status

This is a client library for accessing resources protected by OAuth 2.0.

Installation

To install, simply run the following command in your terminal:

$ pip install --upgrade oauth2client

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.

Supported Python Versions

We support Python 2.7 and 3.4+. More information in the docs.