LastFMTools
This is repo of pythons scripts, i created over the past year or so that utilize lastfm scrobbling feature, and public lastfm api to create visualizations of user listening history. you can try using them at: LastFMTools.app
Tools:
GIF-Mosaic
Bubble-Chart
Color-Chart
Okay but what is LastFM in the first place?
Last.fm is a music streaming and recommendation service that allows users to create personalized music profiles, discover new music, and connect with other music enthusiasts.
The scrobbling feature of Last.fm tracks the music you listen to on various platforms and records it on your profile. This data is used to analyze your music taste and listening history.
Can i test those scripts without having LastFM account?
Sure, there's random feature for every tool, that lets you use script without providing your LastFM nickname, providing you with image created from profile of random lastfm user
Installation
Use the package manager pip to install lastfmtools.
pip install lastfmtools
Example usage:
import LastFMTools
# creates bubble chart consisting of 50 most listened to albums, for user MyNickname, and
# saves it as bubble.png
bubble_chart = BubbleChart("album", 50, "bubble.png", "MyNickname")
# creates gif of mosaic pictures, thay displays 25 favorite albums for each month,
# from november 2022, onwards, and saves it as File.gif
gif_mosaic = GifMosaic("01-11-2022", "month", 5, "File.gif", "MyNickName")
# create mosaic that displays 16 album covers that
# have biggest percentage of yellow, or similar colors in it, according to [CIE94](https://en.wikipedia.org/wiki/Color_difference#CIE94)
color_mosaic = ColorMosaic(COLOR.YELLOW, 4, "Yellow.png")
Contribution
If you think there's anything to improve in those scripts, then feel free to create issues and pull-requests,
License
Metadata
Release files for lastfmtools 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lastfmtools-0.1.0.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lastfmtools-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.1 kB
Release files / lastfmtools-0.1.0.tar.gz
| Download URL | lastfmtools-0.1.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
108d92a659e04f4993565894f4c81bde57d53861d1095b74729b355951508a71
|
|
BLAKE2b-256 checksum How to use checksums |
208a192065dc3fb3a156c156deb81e80ea89bcd6a6c5d2bcdee271ab1e6b0e79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.8.10 Linux/5.15.0-60-generic
|
Release files / lastfmtools-0.1.0-py3-none-any.whl
| Download URL | lastfmtools-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
600323d36f8fcb1465fb923850149757ed4db3be69b2ca4e57f5e8c82afe5cff
|
|
BLAKE2b-256 checksum How to use checksums |
e13b1ef3a6e20d3e457572307316f1f580b3688117faa6b1e67a2dff7e8a0926
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.8.10 Linux/5.15.0-60-generic
|