dtflickr

It requires Python 2.5 or higer and uses simplejson 1.7 or higher (required
for Python 2.5) or the built in json module (Python 2.6 or higer if simplejson
is not available). It is released under the Apache License, Version 2.0.

dtflickr also contains some utility functions to assist with some common tasks:

getPhotoSourceURL(photo, size=None)
Returns a photo source URL.
Arguments:
photo (Required)
A photo response.
size (Optional)
A size constant (SmallSquare, Thumbnail, Small, Medium (default), Large, or Original).
getWebPageProfileURL(user_id)
Returns a web page profile URL of a user.
Arguments:
user_id (Required):
The NSID or username of the user.
getWebPagePhotostreamURL(user_id)
Returns a web page photostream URL of a user.
Arguments:
user_id (Required)
The NSID or username of the user.
getBuddyiconURL(person, flickr=None)
Returns a buddyicon URL for a person.
Arguments:
person (Required)
A person response or (if the flickr argument is specified) an NSID of the user.
flickr (Optional)
A Flickr API instance used to get a person response.
getURLDetails(url)
Parses a Flickr URL and returns useful information from it or None if it is not a useful URL.
This can currently parse photo source, user profile, user photos, photo, set, and buddyicon URLs.
Arguments:
url (Required)
A Flickr URL.