Skip to main content

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

alt text

Bubble-Chart

alt text

Color-Chart

alt text

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

MIT

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)

Source distribution for lastfmtools 0.1.0
File Size Uploaded
lastfmtools-0.1.0.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lastfmtools 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.0 This release

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