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
Release files for lastfmcollagegenerator 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lastfmcollagegenerator-0.2.0.tar.gz | 410.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lastfmcollagegenerator-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 818.1 kB
Release files / lastfmcollagegenerator-0.2.0.tar.gz
| Download URL | lastfmcollagegenerator-0.2.0.tar.gz |
|---|---|
| Size | 410.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a88feb45bfba72125525a06dc163e01bc6f07b289481066e00fb305302b6cc17
|
|
BLAKE2b-256 checksum How to use checksums |
44287b4c0d3e7e51bf650ef0fcac650b7d9878492f062401303c607fe54b3e0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.5
|
Release files / lastfmcollagegenerator-0.2.0-py3-none-any.whl
| Download URL | lastfmcollagegenerator-0.2.0-py3-none-any.whl |
|---|---|
| Size | 407.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ff63139d0ef4d866a9b84efbf2fc532182867d9b5af94577f62720891b42736
|
|
BLAKE2b-256 checksum How to use checksums |
20401c30eb7092741251b112145fc3ee219efbc116e2efa06e6084cc891c27b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.5
|