Permalink
Browse files

4.2 check in

  • Loading branch information...
1 parent b2230f8 commit b06d03c2884e6374d4846b5e1508a08cc4e7a442 williams.tyler committed Jul 7, 2010
View
@@ -0,0 +1,6 @@
+This file contains the name of the people who have contributed to
+pyechonest. The names are sorted alphabetically by last name.
+
+Reid Draper
+Ben Lacker
+Tyler Williams
View
@@ -0,0 +1,4 @@
+As per usual python routine, the following should get you setup:
+
+ $ python setup.py build
+ $ python setup.py install
View
10 LICENSE
@@ -0,0 +1,10 @@
+Copyright (c) 2010, The Echo Nest Corporation
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+Neither the name of the <ORGANIZATION> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
View
52 README
@@ -0,0 +1,52 @@
+Welcome to pyechonest, a python wrapper around the Beta Echo Nest API (v4).
+
+This wrapper should allow you to get started using the Beta Echo Nest API quickly and easily. The only requirement is a developer API key, which you can get for free from http://developer.echonest.com/account/register/.
+
+For documentation questions, please refer to the official beta api docs, which are available at http://beta.developer.echonest.com/.
+
+IMPORTANT: You must let pyechonest know about your API key before you use it. There are two ways to let pyechonest know about your API key:
+
+ 1. Set the variable ECHO_NEST_API_KEY in your environment to your key.
+ (bourne-like shells) $ export ECHO_NEST_API_KEY=YOUR_API_KEY
+ (c-like shells) $ setenv ECHO_NEST_API_KEY YOUR_API_KEY
+
+ 2. In Python, do this:
+ >>> from pyechonest import config
+ >>> config.ECHO_NEST_API_KEY = YOUR_API_KEY
+
+***Note that pyechonest currently only supports artist and song methods in the new API***
+
+Examples:
+ Search for artist:
+ >>> from pyechonest import artist
+ >>> weezer_results = artist.search(query='weezer')
+ >>> weezer = weezer_results[0]
+ >>> weezer_blogs = weezer.blogs
+ >>> print 'Blogs about weezer:', [blog.url for blog in weezer_blogs]
+
+ Get an artist from their Musicbrainz ID:
+ >>> from pyechonest import artist
+ >>> a = artist.Artist('musicbrainz:artist:a74b1b7f-71a5-4011-9441-d0b5e4122711')
+ >>> print a.name
+
+ Get the top hottt artists:
+ >>> from pyechonest import artist
+ >>> for hottt_artist in artist.top_hottt():
+ >>> print hottt_artist.name, hottt_artist.hotttnesss
+
+ Search for songs:
+ >>> from pyechonest import song
+ >>> rkp_results = song.search(artist='radiohead', title='karma police')
+ >>> karma_police = rkp_results[0]
+ >>> print karma_police.artist_location
+ >>> print karma_police.audio_summary.tempo, karma_police.audio_summary.duration
+
+ Get a song's audio_url and analysis_url:
+ >>> from pyechonest import song
+ >>> wn_results = song.search(combined='the national - wasp nest')
+ >>> wasp_nest = wn_results[0]
+ >>> wn_tracks = wasp_nest.tracks
+ >>> print wn_tracks[0].audio_url
+ >>> print wn_tracks[0].analysis_url
+
+
@@ -0,0 +1,22 @@
+
+<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<html><head><title>Python: module pyechonest.__init__</title>
+</head><body bgcolor="#f0f0f8">
+
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
+<tr bgcolor="#7799ee">
+<td valign=bottom>&nbsp;<br>
+<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="pyechonest.html"><font color="#ffffff">pyechonest</font></a>.__init__</strong></big></big></font></td
+><td align=right valign=bottom
+><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="/pyechonest/__init__.py">/pyechonest/__init__.py</a></font></td></tr></table>
+ <p><tt>Copyright&nbsp;(c)&nbsp;2010&nbsp;The&nbsp;Echo&nbsp;Nest.&nbsp;All&nbsp;rights&nbsp;reserved.<br>
+Created&nbsp;by&nbsp;Tyler&nbsp;Williams&nbsp;on&nbsp;2009-06-25.</tt></p>
+<p>
+<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
+<tr bgcolor="#55aa55">
+<td colspan=3 valign=bottom>&nbsp;<br>
+<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
+
+<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
+<td width="100%"><strong>__all__</strong> = ['config', 'util', 'proxies', 'results', 'artist', 'song', 'track']</td></tr></table>
+</body></html>
Oops, something went wrong.

0 comments on commit b06d03c

Please sign in to comment.