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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file libfm-0.2-py2.5.egg.
File metadata
- Download URL: libfm-0.2-py2.5.egg
- Upload date:
- Size: 5.1 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b9c35584a329733001d591761e0c2bbdecf5669aaae94114d1e7d2a982e1bb9
|
|
| MD5 |
582b7c89a49f3fe59303bb0ef4d77e55
|
|
| BLAKE2b-256 |
e5c5d82652df25226dd170d91d3cbcc6f5ba33cbae275d10732aa2273878def2
|