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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b471eca90623af4e7eb3fe7cb771c22c1f92708e4e2422ef548cf0a6e12afd5 |
|
MD5 | dcf341de555c86c82a171379d8919de1 |
|
BLAKE2b-256 | 9eae087abb8e3543e7f022c026d9fcb4d757b405b1b4f5d6c9b266ad52fea7b2 |
Close
Hashes for lastfmcollagegenerator-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7a7188b52a8fa6b09155b0bbfbbd67cd7ebaaaef9756b791437df5fec724c2d |
|
MD5 | cf2c9a44648d7c5ec72e2cdb53d24dd6 |
|
BLAKE2b-256 | 880ec5cac2ad86a5b5084418df75d2f0e497ae4920f38e77120477571c77410f |