Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lastfmtools-0.1.0.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

lastfmtools-0.1.0-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page