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
Options
Entity values
"album", "artist", "track"
Period values
"7day", "1month", "3month", "6month", "12month", "overall"
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(entity="album", username="username", cols=5, rows=5, period="7day")
image.save("5x5 album collage.png", "png")
# Or just call the method directly
image = collage_generator.generate_top_albums_collage(username="username", cols=5, rows=5, period="7day")
image.save("5x5 album 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.4.0.tar.gz
(409.3 kB
view hashes)
Built Distribution
Close
Hashes for lastfmcollagegenerator-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e68ba427e7afbdf1cf7a24a9f7886e97ddf4fd4ef4b37a5e9b9bc02b5c44e30 |
|
MD5 | ee8f185387b39900598d2b5d27a7dc14 |
|
BLAKE2b-256 | 935e63bba537d2b7dd2efbd05603e3929243bba358515efc7285f04062d809d9 |
Close
Hashes for lastfmcollagegenerator-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59b302d8020da09e94915fd0db63682654d5d18bb0aaf67eade9e79b5b17d914 |
|
MD5 | f240d6d49948c4c2adbb6ca8cb8d6a47 |
|
BLAKE2b-256 | 05dd7553d382d2c6ee9c62537aef45f9fc07fcba01e4754da02719a0dd0ef4ba |