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(username="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
lastfmcollagegenerator-0.2.8.tar.gz
(408.0 kB
view hashes)
Built Distribution
Close
Hashes for lastfmcollagegenerator-0.2.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 646efbb80b3b85d407df4160f5c657699361659b3476b371ed211d61594edfd1 |
|
MD5 | 6e2c638b1d5de3648d2b5e9e1a2d545d |
|
BLAKE2b-256 | 566706a25b89844ca06c3e47d7f32c20edcb0f50e1a8742b7aa2e79f777a8d40 |
Close
Hashes for lastfmcollagegenerator-0.2.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e9f9ed73ba1bf0f70cfd8b6e00dd257b9746f9bb2fa13c99250073ac8c6b299 |
|
MD5 | 977834376151b258dfc8615f00c4c4cb |
|
BLAKE2b-256 | 81ccac4e8dd50539499f6f1ee8e1294bd69e43fb5d4a247fa848cf8ce39b7899 |