Create Last.fm collages
Project description
lastfm-collage-generator
Python library to create Last.fm collages from user's top albums.
It supports different configurations like the grid size or the period.
Features
- Choose the number of rows and columns (for now, up to 5)
- Choose the period to calculate the top (7day, 1month, 3month, 6month, 12month, overall. Default: 7day)
Installation
Install lastfmcollagegenerator with pip
pip install lastfmcollagegenerator
Options
Entity values
"album", "artist", "track"
Period values
"7day", "1month", "3month", "6month", "12month", "overall"
Usage/Examples
from lastfmcollagegenerator.collage_generator import CollageGenerator
collage_generator = CollageGenerator(lastfm_api_key="YOUR_API_KEY", lastfm_api_secret="YOUR_API_SECRET")
# Returns a PIL Image object
image = collage_generator.generate(entity="album", username="username", cols=5, rows=5, period="7day")
image.save("5x5 album collage.png", "png")
# Or just call the method directly
image = collage_generator.generate_top_albums_collage(username="username", cols=5, rows=5, period="7day")
image.save("5x5 album collage.png", "png")
License
Authors
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
lastfmcollagegenerator-0.3.0.tar.gz
(409.0 kB
view hashes)
Built Distribution
Close
Hashes for lastfmcollagegenerator-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e84f40dc22013253a0a1f3f1c5ff18ae5e84b7d6d82d1b113da78279c11c2208 |
|
MD5 | 1a837162b15c7da02ec1bb92d3d781e2 |
|
BLAKE2b-256 | 34bab65d7cc3caa65098383b7259c9fa0b14bb9dc813d6241fe9ec78bbdabd2a |
Close
Hashes for lastfmcollagegenerator-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00cf05bdb3595058401042d957506eac40381270a44dc42c66bc04b6f6499e9f |
|
MD5 | 57e941698ab1a7200b5cbb83fb172d47 |
|
BLAKE2b-256 | f1b6ffc2b560ed4b0a2242f61a71068c33c2d10e181e646f97ad9416420cd372 |