Trees | Indices | Help |
|
---|
|
Copyright (c) 2010 The Echo Nest. All rights reserved. Created by Tyler Williams on 2010-04-25.
Utility functions to support the Echo Nest web API interface.
|
|||
MyBaseHandler | |||
MyErrorProcessor | |||
EchoNestException Parent exception class. Catches API and URL/HTTP errors. |
|||
EchoNestAPIError API Specific Errors. |
|||
EchoNestIOError URL and HTTP errors. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
logger = logging.getLogger(__name__)
|
|||
TYPENAMES =
|
|||
foreign_regex = re.compile(r'^.
|
|||
short_regex = re.compile(r'^
|
|||
long_regex = re.compile(r'music://id.echonest.com/.
|
|||
headers =
|
|||
opener = urllib2.build_opener(MyBaseHandler(), MyErrorProcesso
|
|||
__package__ =
|
|
Call the api! Param_dict is a regular python dictionary so if you want to have multi-valued params put them in a list. ** note, if we require 2.6, we can get rid of this timeout munging. |
Attempt to replace postMultipart() with nearly-identical interface. (The files tuple no longer requires the filename, and we only return the response body.) Uses the urllib2_file.py originally from http://fabien.seisen.org which was also drawn heavily from http://code.activestate.com/recipes/146306/ . This urllib2_file.py is more desirable because of the chunked uploading from a file pointer (no need to read entire file into memory) and the ability to work from behind a proxy (due to its basis on urllib2). |
|
TYPENAMES
|
foreign_regex
|
short_regex
|
long_regex
|
opener
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Dec 12 11:24:19 2012 | http://epydoc.sourceforge.net |