This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Lightweight wrapper over last.fm API

Project Description

Run ‘easy_install libfm’ to install this library.

All API methods are handled through the ‘read’ and ‘write’ methods.

Methods from the API’s Auth should not be called directly. Instead use the equivalent ‘create_mobile_session’, ‘create_session’ and ‘get_token’.

The ‘read’ and ‘write’ methods will return a JSON like structure made up of lists and dictionaries. The same structure will be generated regardless the format of the actual API method response (XML or JSON). By default libfm will try to ask for JSON response formats. See http://www.last.fm/api/rest for the rules on how XML responses get transformed into JSON.

Error responses will be raised as exceptions of type LibFMError. Error codes above 100 correspond to error types introduced by this library.

Http proxies are supported per LibFm object instance.

LibFm’s instances are thread safe, provided you refrain from modifying their instance members mid-execution :).

See example.py for usage examples.

Release History

Release History

This version
History Node

0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
libfm-0.2-py2.5.egg (5.1 kB) Copy SHA256 Checksum SHA256 2.5 Egg Jan 6, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting