Menu

Python FlickrAPI 1.1 released

A new version of the Python Flickr API has been released. The module
provides Python programmers with an easy to use interface to the
popular photo website Flickr.

Version 1.1 introduces a lot of new goodies - tab completion in
IPython, a caching framework and a new response format parser
ElementTree, to name the major changes.

The new version can be installed using "easy_install flickrapi", or by
downloading the source from the project website at
http://flickrapi.sourceforge.net/

These are all the changes:

- Added caching framework. Pass cache=True to the constructor to use
it. Compatible with Django caching framework.

- Tab completion of all Flickr API functions in IPython.

- Fix for a bug where a crash occurred when XML containing a <name />
element was parsed with XMLNode.

- Deprecated a number of methods for old-style error handling,
including the fail_on_error constructor parameter. Just handle
the FlickrError exceptions instead of explicitly testing all
method calls. The deprecated methods will be completely removed
in release 1.2.

- Implemented a response parser system, which still parses to
XMLNode objects by default. It now also includes parsing to the
Python standard ElementTree format. ElementTree will soon
replace XMLNode as the default response parser. See the
documentation on how to use the new parsers.

- Added format constructor parameter to set the default response
format for all method calls. Overriding per call is still
possible.

- Added store_token constructor parameter that's True by default.
Set to False to ensure the on-disk token cache isn't used.

The Python package can be downloaded from
http://downloads.sourceforge.net/flickrapi/flickrapi-1.1.tar.gz

Documentation can be found at
http://flickrapi.sourceforge.net/documentation.html with API
documentation at http://flickrapi.sourceforge.net/apidoc/

Features that set this Flickr API interface apart from other Python
implementations:

- Actively developed.

- Extensive documentation, including usage examples.

- API documentation that's always up-to-date with the latest version.

- Support for uploading and replacing photos.

- Automatically keeps track of your authentication credentials. No
need to pass them on every Flickr API call.

- Caching framework compatible with Django caching.

Posted by Sybren A. Stüvel 2008-04-15

Log in to post a comment.