Skip to main content

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())

Metadata

Release files for lastfm-py 0.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lastfm-py 0.0.12
File Size Uploaded
lastfm-py-0.0.12.tar.gz 3.5 kB Details

Release files / lastfm-py-0.0.12.tar.gz

Download URL lastfm-py-0.0.12.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4fd201c96d12854cf72af1e6157d0df20da327f00e892e7945673ffa264bf67f
BLAKE2b-256 checksum
How to use checksums
8ab0a4ab082df46b123142e80f5d15e8ed41292661e6c40663a444269266eb3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.1

Release history Release notifications | RSS feed

This release

0.0.12 This release

1 release file

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page