Dbus_lastfm is a project mainly written in Python, it's free.
Linux application exposing a DBus API to Last.fm Web API
This application offers a DBus API to Last.fm web service API (LFMWS). Since many of the "write" methods of the LFMWS required authentication, this application facilitates interfacing to Last.fm by provided a simple GUI for the user to provision the required parameters (username, api_key, secret_key) and launch a browser instance for performing the "authorization flow".
The API is accessible through DBus. The DBus bus name is fm.last.api. There is only one object exposed, the root / object.
Interface: fm.last.api.account Methods:
Interface: fm.last.api.track Methods:
python-notify
Ubuntu packageA Debian package is available on my Launchpad PPA