Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Different Python Google APIs

I am trying to figure out the difference between Google's GData API ( http://code.google.com/p/gdata-python-client/ ) and Google's APIs Client Library for Python ( http://code.google.com/p/google-api-python-client/ ).

They both seem to be by Google. Which is the official one? How are they different? The second seems to use OAuth primarily.

If anyone has knowledge or experience using either it would be great to get some information about this!

PS: I though about putting this on superuser, but because it is programming related I thought it would be better here.

like image 391
Alexis Avatar asked Apr 01 '12 23:04

Alexis


People also ask

Does Google have a Python API?

GitHub - googleapis/google-api-python-client: 🐍 The official Python client library for Google's discovery based APIs. 🐍 The official Python client library for Google's discovery based APIs.

What is Python API client?

Python API Client. A client for communicating with an api should be a clean abstraction over the third part api you are communicating with. It should be easy to understand and have the sole responsibility of calling the endpoints and returning data.


2 Answers

The difference is the same as the difference between the corresponding Java libraries (http://code.google.com/p/google-api-java-client/ and http://code.google.com/p/gdata-java-client/)

That is, the gdata- version of the code has gone into maintenance mode, probably won't be updated to cover new APIs, but will have bugs fixed as they're found. The google-api- version is under very active development.

There's a good discussion of the pros and cons of each version of the Java api here: http://code.google.com/p/gdata-java-client/wiki/MigratingToGoogleApiJavaClient

The non-java-specific parts of that document also apply to the python api libraries.

like image 146
Daniel Martin Avatar answered Oct 23 '22 14:10

Daniel Martin


These libraries are also intended to support different protocols.

The APIs supported by google-api-python-client are discovery based, while those supported by gdata-python-client use the GData protocol.

like image 31
bossylobster Avatar answered Oct 23 '22 16:10

bossylobster