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