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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08cda89e0d607f5ab89e951a08f447aca74f1cb013e2a5811ceadd72e78664f2 |
|
MD5 | 9dd51384d70f85b24246b03a514b115d |
|
BLAKE2b-256 | b4ac2c78b63c1405a86cb09c8cce1a7245e1f70eefd1d30d9f6129138c186e80 |
Close
Hashes for lastfmcollagegenerator-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e3f2e726dd4479b9a693031a7646a5b4c3d5f4e28e91d722f1319c88c6ddfa5 |
|
MD5 | 6ed4478a1f15aa79faa99bed0c64cac3 |
|
BLAKE2b-256 | edf27eee46636d98c64c7215154fa3b4b2e90aa90cd7a152b791640b82a49672 |