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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28ffea489b86fbaebdafe0e979ff6095e1fa4ffcaa2fc5ed00958b47ccb06072 |
|
MD5 | ce85290cd060d699d65dfb71835fb3b6 |
|
BLAKE2b-256 | 4fec4c2363c1738792c3564405dc3c8cac890ad18f74a610e3952b9401926266 |
Close
Hashes for lastfmcollagegenerator-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dde28ad842bc67272751e95b0fb4263629f8eb5ae3644a7e918dc2262a99366c |
|
MD5 | e823584c58fc9e7cb31c46f8522bc22a |
|
BLAKE2b-256 | c6b9809998042d9513fd5d6e884a899e51b40ecf4de6a8ffa0fafd453cfd0b08 |