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
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_top_albums_collage(user="username", cols=5, rows=5, period="7day")
image.save("5x5 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
Built Distribution
Close
Hashes for lastfmcollagegenerator-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fccc6a9cf6c01a9c7c77d0688203a1b54f6e296b2358378b894da5c750c455a |
|
MD5 | 3b53bc071ab56c1aad03a39c9479dc15 |
|
BLAKE2b-256 | f3233e0c946fae2894c4fa8d9162f1dd2620ce0ccb2aa39feff41e33ac9fec9f |
Close
Hashes for lastfmcollagegenerator-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7a3bc60006471653abccbc90b6adb4dafd74070725941cbe8c7d3ee0d367deb |
|
MD5 | c2cc12da5cfcaa9d5b449613dc11eccd |
|
BLAKE2b-256 | 6c2f88570c1cc0d1f1cbd4763b3950c880857945758ed1a1ca7cce6f346ebdde |