Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

libfm

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libfm

Lightweight wrapper over last.fm API

  • 0.1
  • PyPI
  • Socket score

Maintainers
1

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc