blob: 38fb71589f72af875aa1f207135e2c6efad2522a [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
Anthonios Partheniou82785372021-03-15 11:52:11 -04005This is the Python client library for Google's discovery based APIs. To get started, please see the [docs folder](https://github.com/googleapis/google-api-python-client/blob/master/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
release-please[bot]a9c7ddc2021-03-03 21:52:06 +00009## Version 2.0 Release
10The 2.0 release of `google-api-python-client` is a significant upgrade compared
Anthonios Partheniou82785372021-03-15 11:52:11 -040011to v1. Please see the [Migration Guide](https://github.com/googleapis/google-api-python-client/blob/master/UPGRADING.md) for more information.
release-please[bot]a9c7ddc2021-03-03 21:52:06 +000012
Grant Timmerman5c11b0a2019-06-26 07:39:48 -070013## Documentation
14
Anthonios Partheniou82785372021-03-15 11:52:11 -040015See the [docs folder](https://github.com/googleapis/google-api-python-client/blob/master/docs/README.md) for more detailed instructions and additional documentation.
Grant Timmerman5c11b0a2019-06-26 07:39:48 -070016
Kamil Breguła41144852020-03-20 22:42:50 +010017## Other Google API libraries
Matt Whisenhunt3c2c8052018-04-13 10:03:46 -070018
Kamil Breguła4c84c2c2020-01-27 18:10:19 +010019For 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).
20
21For 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 -040022
Kamil Breguła41144852020-03-20 22:42:50 +010023For Google Firebase Admin API, we recommend using [Firebase Admin Python SDK](https://github.com/firebase/firebase-admin-python).
24
Grant Timmerman5c11b0a2019-06-26 07:39:48 -070025## Installation
26
Bu Sun Kime85af682019-10-22 13:45:38 -070027Install this library in a [virtualenv](https://virtualenv.pypa.io/en/latest/) using pip. virtualenv is a tool to
28create isolated Python environments. The basic problem it addresses is one of
29dependencies and versions, and indirectly permissions.
Joe Gregorio46675d22012-06-20 12:15:24 -040030
Bu Sun Kime85af682019-10-22 13:45:38 -070031With virtualenv, it's possible to install this library without needing system
32install permissions, and without clashing with the installed system
33dependencies.
34
35### Mac/Linux
36
37```
38pip install virtualenv
39virtualenv <your-env>
40source <your-env>/bin/activate
41<your-env>/bin/pip install google-api-python-client
Michael Mattiolib2b518f2014-07-14 00:48:04 -040042```
Grant Timmerman5c11b0a2019-06-26 07:39:48 -070043
Bu Sun Kime85af682019-10-22 13:45:38 -070044### Windows
Grant Timmerman5c11b0a2019-06-26 07:39:48 -070045
Bu Sun Kime85af682019-10-22 13:45:38 -070046```
47pip install virtualenv
48virtualenv <your-env>
49<your-env>\Scripts\activate
50<your-env>\Scripts\pip.exe install google-api-python-client
Michael Mattiolib2b518f2014-07-14 00:48:04 -040051```
Tom Miller7c95d812010-10-11 11:50:52 -070052
Grant Timmerman5c11b0a2019-06-26 07:39:48 -070053## Supported Python Versions
Joe Gregorio48d361f2010-08-18 13:19:21 -040054
Bu Sun Kim8325d242020-12-09 12:04:05 -070055Python 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 -080056
Bu Sun Kim8325d242020-12-09 12:04:05 -070057## Unsupported Python Versions
Grant Timmerman5c11b0a2019-06-26 07:39:48 -070058
Bu Sun Kim8325d242020-12-09 12:04:05 -070059Python < 3.6
Jay Lee9cd0eb02014-09-12 07:15:11 -040060
Grant Timmerman5c11b0a2019-06-26 07:39:48 -070061## Third Party Libraries and Dependencies
62
Michael Mattiolib2b518f2014-07-14 00:48:04 -040063The following libraries will be installed when you install the client library:
Luis Nell4859b142016-08-01 18:43:35 +020064* [httplib2](https://github.com/httplib2/httplib2)
Simon Weberc952fd02016-10-13 12:48:44 -040065* [uritemplate](https://github.com/sigmavirus24/uritemplate)
Joe Gregorio8097e2a2011-05-17 11:11:34 -040066
Michael Mattioli460a4ad2014-08-01 21:37:56 -040067For development you will also need the following libraries:
andrewnester31677812017-03-31 16:39:30 +030068* [WebTest](http://webtest.pythonpaste.org/en/latest/index.html)
Michael Mattioli460a4ad2014-08-01 21:37:56 -040069* [pyopenssl](https://pypi.python.org/pypi/pyOpenSSL)
Craig Citro3f8dc782014-05-19 15:00:07 -070070
Grant Timmerman5c11b0a2019-06-26 07:39:48 -070071## Contributing
72
Anthonios Partheniou82785372021-03-15 11:52:11 -040073Please see our [Contribution Guide](https://github.com/googleapis/google-api-python-client/blob/master/CONTRIBUTING.rst).
release-please[bot]a9c7ddc2021-03-03 21:52:06 +000074In particular, we love pull requests - but please make sure to sign
Dmitry Frenkel63f97f32020-07-09 10:14:02 -070075the contributor license agreement.