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.4.2.tar.gz
(409.9 kB
view hashes)
Built Distribution
Close
Hashes for lastfmcollagegenerator-0.4.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e6169398030558401c5677ad4bc4ab4b72ca4a219b5b37a6e1b22d213e19a07 |
|
MD5 | 86374950757b0cd21b23df9be2f53a95 |
|
BLAKE2b-256 | d7ece31a08e8867de518179afda2e2912dedc6613d4167e0ad0c68e8bac68fa1 |
Close
Hashes for lastfmcollagegenerator-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb14371b7d74a0f691a3a30d2bf034f99fa9d0e1be2cc2d43cdc66248ea7d0cd |
|
MD5 | 49fba8c808681a20cb2097866ce71d3e |
|
BLAKE2b-256 | b80a3dfb68e137d4b767e3490e76d1e8527a66f1879f75ad2d2e803d1132f582 |