scherfke / django-lastfm (http://stefan.sofa-rockers.org/django-lastfm/)

Access last.fm from your Django powered website.

Clone this repository (size: 52.4 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/scherfke/django-lastfm/
commit 21: f4365b31d957
parent 20: 536b8c92618d
child 22: 607804dcd8c2
Added page caching for lastfm view default
Stefan Scherfke
2 months ago

 NB: This is not the latest revision. For the latest view, go to tip.

View at rev
django-lastfm /
filename size last modified message
doc  
lastfm  
.hgignore 128 B 3 months ago Added default settings to simplify sphinx builds.
.hgtags 139 B 2 months ago Added tag 0.1.2 for changeset 1d8a0d7fd3f4
AUTHORS.txt 117 B 4 months ago Moved everything that was to "lastfm/" and added some basic…
CHANGELOG.txt 462 B 2 months ago Raised version to 0.1.2
LICENSE.txt 1.5 KB 4 months ago Moved everything that was to "lastfm/" and added some basic…
MANIFEST.in 36 B 4 months ago added setup.py
README.txt 1.5 KB 2 months ago Doc updates
setup.py 923 B 4 months ago added setup.py

README

Django Last.fm access
=====================

This is a small Django application that allows you to access Last.fm and
embed e.g. your recently listened tracks or you top artists on your website.

Currently you can get your
* recently listened tracks
* weekly artist chart
* top artists (for a definable period)

The application consists of two main parts: The first one is a view, that
retrieves the data from Last.fm, processes it and returns it as a JSON encoded
dict. The second one is a template tag that embeds some AJAX code into your
website. This code will call the view and display the artist images or album
covers. This mechanism prevents the Last.fm servers from slowing down your
blazingly fast Django site … ;-)


Requirements
------------

This app is tested with Django 1.1. It might also work with older versions, but
I haven’t tested it.

If you want to run the tests, you’ll need to install `Mock 
<http://www.voidspace.org.uk/python/mock/>`_.

There are no other requirements.


Installation
------------

If you read this, you have probably managed to extract the archive containing
these files. Next, open a Terminal and `cd` to the directory containing this
file (e.g. ``cd ~/Downloads/django-lastfm``). Then execute::

    python setup.py install
    
If you checked out the repository and always want to use the newest version,
type::

    pip install -e path/to/django-lastfm
    

Usage
-----

The Documentation can be found in the *docs/* directory or
`online <http://stefan.sofa-rockers.org/docs/django-lastfm/>`_.