blob: ff244866dd2293e16ca7ca8f5c812788fd77a792 [file] [log] [blame] [view]
Matt Whisenhunt3c2c8052018-04-13 10:03:46 -07001# Google API Client
Dan O'Meara9c203d32017-07-07 09:03:31 -07002
Sander Brauwers729d9ae2018-12-13 19:28:04 +01003[![PyPI version](https://badge.fury.io/py/google-api-python-client.svg)](https://badge.fury.io/py/google-api-python-client)
4
Bu Sun Kimc9773042019-07-17 14:03:17 -07005This is the Python client library for Google's discovery based APIs. To get started, please see the [docs folder](docs/README.md).
John Asmuth2fefc4c2014-04-24 16:13:05 -04006
Matt Whisenhunt3c2c8052018-04-13 10:03:46 -07007These client libraries are officially supported by Google. However, the libraries are considered complete and are in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.
8
Grant Timmerman5c11b0a2019-06-26 07:39:48 -07009## Documentation
10
11See the [docs folder](docs/README.md) for more detailed instructions and additional documentation.
12
Kamil Breguła41144852020-03-20 22:42:50 +010013## Other Google API libraries
Matt Whisenhunt3c2c8052018-04-13 10:03:46 -070014
Kamil Breguła4c84c2c2020-01-27 18:10:19 +010015For Google Cloud Platform APIs such as Datastore, Cloud Storage or Pub/Sub, we recommend using [Cloud Client Libraries for Python](https://github.com/GoogleCloudPlatform/google-cloud-python).
16
17For Google Ads API, we recommend using [Google Ads API Client Library for Python](https://github.com/googleads/google-ads-python/).
Joe Gregorio8097e2a2011-05-17 11:11:34 -040018
Kamil Breguła41144852020-03-20 22:42:50 +010019For Google Firebase Admin API, we recommend using [Firebase Admin Python SDK](https://github.com/firebase/firebase-admin-python).
20
Grant Timmerman5c11b0a2019-06-26 07:39:48 -070021## Installation
22
Bu Sun Kime85af682019-10-22 13:45:38 -070023Install this library in a [virtualenv](https://virtualenv.pypa.io/en/latest/) using pip. virtualenv is a tool to
24create isolated Python environments. The basic problem it addresses is one of
25dependencies and versions, and indirectly permissions.
Joe Gregorio46675d22012-06-20 12:15:24 -040026
Bu Sun Kime85af682019-10-22 13:45:38 -070027With virtualenv, it's possible to install this library without needing system
28install permissions, and without clashing with the installed system
29dependencies.
30
31### Mac/Linux
32
33```
34pip install virtualenv
35virtualenv <your-env>
36source <your-env>/bin/activate
37<your-env>/bin/pip install google-api-python-client
Michael Mattiolib2b518f2014-07-14 00:48:04 -040038```
Grant Timmerman5c11b0a2019-06-26 07:39:48 -070039
Bu Sun Kime85af682019-10-22 13:45:38 -070040### Windows
Grant Timmerman5c11b0a2019-06-26 07:39:48 -070041
Bu Sun Kime85af682019-10-22 13:45:38 -070042```
43pip install virtualenv
44virtualenv <your-env>
45<your-env>\Scripts\activate
46<your-env>\Scripts\pip.exe install google-api-python-client
Michael Mattiolib2b518f2014-07-14 00:48:04 -040047```
Tom Miller7c95d812010-10-11 11:50:52 -070048
Grant Timmerman5c11b0a2019-06-26 07:39:48 -070049## Supported Python Versions
Joe Gregorio48d361f2010-08-18 13:19:21 -040050
Bu Sun Kim8325d242020-12-09 12:04:05 -070051Python 3.6, 3.7, 3.8, and 3.9 are fully supported and tested. This library may work on later versions of 3, but we do not currently run tests against those versions.
Christopher Wilcox8f4a5302018-12-14 12:24:44 -080052
Bu Sun Kim8325d242020-12-09 12:04:05 -070053## Unsupported Python Versions
Grant Timmerman5c11b0a2019-06-26 07:39:48 -070054
Bu Sun Kim8325d242020-12-09 12:04:05 -070055Python < 3.6
Jay Lee9cd0eb02014-09-12 07:15:11 -040056
Grant Timmerman5c11b0a2019-06-26 07:39:48 -070057## Third Party Libraries and Dependencies
58
Michael Mattiolib2b518f2014-07-14 00:48:04 -040059The following libraries will be installed when you install the client library:
Luis Nell4859b142016-08-01 18:43:35 +020060* [httplib2](https://github.com/httplib2/httplib2)
Simon Weberc952fd02016-10-13 12:48:44 -040061* [uritemplate](https://github.com/sigmavirus24/uritemplate)
Joe Gregorio8097e2a2011-05-17 11:11:34 -040062
Michael Mattioli460a4ad2014-08-01 21:37:56 -040063For development you will also need the following libraries:
andrewnester31677812017-03-31 16:39:30 +030064* [WebTest](http://webtest.pythonpaste.org/en/latest/index.html)
Michael Mattioli460a4ad2014-08-01 21:37:56 -040065* [pyopenssl](https://pypi.python.org/pypi/pyOpenSSL)
Craig Citro3f8dc782014-05-19 15:00:07 -070066
Grant Timmerman5c11b0a2019-06-26 07:39:48 -070067## Contributing
68
Dmitry Frenkel63f97f32020-07-09 10:14:02 -070069Please see our [Contribution Guide](CONTRIBUTING.rst).
70In particular, we love pull requests - but please make sure to sign
71the contributor license agreement.