commit | feec15f070903069347b9386a24fb73148f97411 | [log] [tgz] |
---|---|---|
author | Craig Citro <craigcitro@gmail.com> | Mon Mar 27 16:47:44 2017 |
committer | Jon Wayne Parrott <jonwayne@google.com> | Mon Mar 27 16:47:44 2017 |
tree | f90c1a0a8aeb25024c247763bd55969a45c3560d | |
parent | a3cf56b659e067dea8ead933f81e4a6f42d30ed8 [diff] |
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.
This is a client library for accessing resources protected by OAuth 2.0.
To install, simply run the following command in your terminal:
$ pip install --upgrade oauth2client
Please see the CONTRIBUTING page for more information. In particular, we love pull requests -- but please make sure to sign the contributor license agreement.
We support Python 2.7 and 3.4+. More information in the docs.