Skip to main content

An asynchronous LastFM API wrapper

Project description

lastfm-py

An asynchronous Python Last.FM API wrapper

Installation

This project will be on PyPi once it is functional

Linux

python3 -m pip install -U lastfm-py

Windows

py -m pip install -U lastfm-py

Examples

Getting a user's recent scrobbles

import lastfm
import asyncio

client = lastfm.Client('client_key') # Replace with your client key (client_secret is optional)

async def main():
    recent_tracks = await client.get_recent_tracks("username", limit=5)
    print(recent_tracks[0].title) # prints the title of the users most recently scrobbled track

asyncio.run(main())

Project details


Download files

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

Source Distribution

lastfm-py-0.0.12.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file lastfm-py-0.0.12.tar.gz.

File metadata

  • Download URL: lastfm-py-0.0.12.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.1

File hashes

Hashes for lastfm-py-0.0.12.tar.gz
Algorithm Hash digest
SHA256 4fd201c96d12854cf72af1e6157d0df20da327f00e892e7945673ffa264bf67f
MD5 aa1d2457afb0db4a4633801333ca051e
BLAKE2b-256 8ab0a4ab082df46b123142e80f5d15e8ed41292661e6c40663a444269266eb3d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page