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
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 Distribution
lastfm-py-0.0.1.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for lastfm_py-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 641a11ca0d3a216d43c8abd5011e0e02fb4e2a71714b706d4fba04a9e510079c |
|
MD5 | 9ee6ef639ec2d7cb6cc34e02a24c7b69 |
|
BLAKE2b-256 | c44d3a768e1b75f0d30042b73b65a0c70889224a86830e8d9b3c60ba9123f392 |