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
lastfmcollagegenerator-0.2.0.tar.gz
(410.6 kB
view hashes)
Built Distribution
Close
Hashes for lastfmcollagegenerator-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a88feb45bfba72125525a06dc163e01bc6f07b289481066e00fb305302b6cc17 |
|
MD5 | 2ceca4ff0fabf1e21cb35012b97882b5 |
|
BLAKE2b-256 | 44287b4c0d3e7e51bf650ef0fcac650b7d9878492f062401303c607fe54b3e0d |
Close
Hashes for lastfmcollagegenerator-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ff63139d0ef4d866a9b84efbf2fc532182867d9b5af94577f62720891b42736 |
|
MD5 | cc8ec096a778e4af766316b4262d385c |
|
BLAKE2b-256 | 20401c30eb7092741251b112145fc3ee219efbc116e2efa06e6084cc891c27b3 |