SyntaxHighlighter

2010/03/03

How to Install gdata client python library

Google Hacks: Tips & Tools for Finding and Using the World's Information
To utilize data on google services like Picasa, maps, calendar, we can use google's gdata client library.  It enables us to write an application seamlessly combined to the google services with Python, Java, or other languages.


Here, I wrote a memo to set up the Python library on my PC and Mac.  It is introduced in the original document.

  1. Check the newest library
    • Gdata library still seems being updated. So we may want to use up-to-date version.
  2. Download and extract the library
    1. curl -o gdata.tar.gz http://gdata-python-client.googlecode.com/files/gdata-2.0.8.tar.gz
    2. tar zxvf gdata.tar.gz
    3. cd gdata-2.0.8/
  3. Install the library
    1. ./setup.py install

If we are using MacOSX, we can also use mac ports.
  1. sudo port install gdata
It is easier way to install and maintain the latest version of the library. However note that the python of mac ports is /opt/local/bin/python. It means we should specify the python correctly in scripts.

0 件のコメント: