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.3.tar.gz
(410.6 kB
view hashes)
Built Distribution
Close
Hashes for lastfmcollagegenerator-0.2.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ef9eddb9ee1684f61d0e42f528e899ff6687205c3b2e4a4e1e109d0792eafbe |
|
MD5 | 40bb696d895ec6e67460c8c07858cac2 |
|
BLAKE2b-256 | 9623f73bd5bb2088dbbc1cb61bb4d4abf5f45c0b459ea3e15dcfe77102cc68d5 |
Close
Hashes for lastfmcollagegenerator-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42464124cf17ba6ba40aedb8c4794f3efd4c90ab5865ee5a054811cb81e8a858 |
|
MD5 | 51a9c99f6f8014c8147cdb6b1e4984f9 |
|
BLAKE2b-256 | 33d8c0afec80c9eb6d63c84c050c9b25a417f2d9df1b2b53f3c9caedee88b8c8 |