Skip to main content

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.

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.

Metadata

Release files for django-lastfm 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-lastfm 1.0.1
File Size Uploaded
django-lastfm-1.0.1.tar.gz 91.3 kB Details

Release files / django-lastfm-1.0.1.tar.gz

Download URL django-lastfm-1.0.1.tar.gz
Size 91.3 kB
Tags Source
SHA-256 checksum
How to use checksums
45b2f37e30d2edaca59a8691fb2c7fcd88e667b7668efbb911524e0e83ed75c2
BLAKE2b-256 checksum
How to use checksums
c3cf290e7abdc595eeae6017558aac48848056811b74fa80405163098137bd46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0

1 release file

0.1.3

1 release file

0.1.2

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page