Package flickrapi
[hide private]
[frames] | no frames]

Package flickrapi

source code

A FlickrAPI interface.

The main functionality can be found in the flickrapi.FlickrAPI class.

See the FlickrAPI homepage for more info.


Version: 1.4.4

Author: Sybren St\xc3\xbcvel

Submodules [hide private]

Classes [hide private]
  XMLNode
XMLNode -- generic class for holding an XML node
  IllegalArgumentException
Raised when a method is passed an illegal argument.
  FlickrError
Raised when a Flickr method fails.
  CancelUpload
Raise this exception in an upload/replace callback function to abort the upload.
  FlickrAPI
Encapsulates Flickr functionality.
Functions [hide private]
 
make_utf8(dictionary)
Encodes all Unicode strings in the dictionary to UTF-8.
source code
 
debug(method)
Method decorator for debugging method calls.
source code
 
rest_parser(format)
Method decorator, use this to mark a function as the parser for REST as returned by Flickr.
source code
 
require_format(required_format)
Method decorator, raises a ValueError when the decorated method is called if the default format is not set to required_format.
source code
 
set_log_level(level)
Sets the log level of the logger used by the FlickrAPI module.
source code
Variables [hide private]
  LOG = logging.getLogger(__name__)
  rest_parsers = {}
  __package__ = 'flickrapi'
Function Details [hide private]

make_utf8(dictionary)

source code 

Encodes all Unicode strings in the dictionary to UTF-8. Converts all other objects to regular strings.

Returns a copy of the dictionary, doesn't touch the original.

debug(method)

source code 

Method decorator for debugging method calls.

Using this automatically sets the log level to DEBUG.