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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa634822cd18c888f1aa1f70e7982e716b0a06461b06a764bc3fc38209df7c53 |
|
MD5 | 55b75611dc53a7ce5b2f140ab1cb9cb3 |
|
BLAKE2b-256 | 7b70e227ef281fddb1a99c7f4896e6a7080c5f33cea9fdac0d0590194ccb9aed |
Close
Hashes for lastfmcollagegenerator-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d13fb92061d075ef96f629581cd0c44e920f00f65e27eb045d5757029fb5b87d |
|
MD5 | 9ba6e760d44513e35228ea54f3ec872b |
|
BLAKE2b-256 | db00b42da2d8993d08fa0c8cd5631eaef62afa387dec4283afa7683fdba0463a |