Skip to main content

Create Last.fm collages

Project description

MIT License

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

MIT

Authors

Project details


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.0.tar.gz (410.6 kB view details)

Uploaded Source

Built Distribution

lastfmcollagegenerator-0.2.0-py3-none-any.whl (407.5 kB view details)

Uploaded Python 3

File details

Details for the file lastfmcollagegenerator-0.2.0.tar.gz.

File metadata

  • Download URL: lastfmcollagegenerator-0.2.0.tar.gz
  • Upload date:
  • Size: 410.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.5

File hashes

Hashes for lastfmcollagegenerator-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a88feb45bfba72125525a06dc163e01bc6f07b289481066e00fb305302b6cc17
MD5 2ceca4ff0fabf1e21cb35012b97882b5
BLAKE2b-256 44287b4c0d3e7e51bf650ef0fcac650b7d9878492f062401303c607fe54b3e0d

See more details on using hashes here.

File details

Details for the file lastfmcollagegenerator-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for lastfmcollagegenerator-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ff63139d0ef4d866a9b84efbf2fc532182867d9b5af94577f62720891b42736
MD5 cc8ec096a778e4af766316b4262d385c
BLAKE2b-256 20401c30eb7092741251b112145fc3ee219efbc116e2efa06e6084cc891c27b3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page