Package lastfm :: Package lib :: Module utils
[frames | no frames]

Module lastfm.lib.utils

Some helper functions
Function Summary
  build_url(*fragments, **kwargs)
  chkformat(requested, *valid)
  Enum(*names)
  load_class(dottedpath)
Loads a class from a module in dotted-path notation.
  retrieve(url)

Variable Summary
Logger log = <logging.Logger instance at 0x4027892c>
str WSURL = 'http://ws.audioscrobbler.com/1.0/'

Function Details

load_class(dottedpath)

Loads a class from a module in dotted-path notation. Eg: load_class("package.module.class").

Based on recipe 16.3 from "Python Cookbook, 2ed., by Alex Martelli, Anna Martelli Ravenscroft, and David Ascher (O'Reilly Media, 2005) 0-596-00797-3"

Variable Details

log

Type:
Logger
Value:
<logging.Logger instance at 0x4027892c>                                

WSURL

Type:
str
Value:
'http://ws.audioscrobbler.com/1.0/'                                    

Generated by Epydoc 2.1 on Sat Feb 24 09:22:17 2007 http://epydoc.sf.net