Skip to main content

Access Last.fm from your Django site.

Project description

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.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-lastfm-0.1.3.tar.gz (12.9 kB view details)

Uploaded Source

File details

Details for the file django-lastfm-0.1.3.tar.gz.

File metadata

  • Download URL: django-lastfm-0.1.3.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-lastfm-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ad096a13d0c01a725f7a2c69e5269dd136bd3e1a2046d8dec2b90175fc3f0371
MD5 b98aaaf6187d73956aa79400ea61d40e
BLAKE2b-256 f8710342e84e5325ddb99efb8aeefd676eb78d845763a36353c159e629da468b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page