Skip to main content

Create printable and scannable cards for albums on Spotify

Project description

spotify-album-cards

PyPI Changelog Tests License

Create printable and scannable cards for albums on Spotify. Print these images, and scan them with your Spotify app to open up the album.

Installation

Install this tool using pip:

pip install spotify-album-cards

Create a Spotify app here. Set the redirect URI to be http://127.0.0.1:9090.

Create a .env file containing your Spotify app's Client ID, Client Secret and redirect URI as follows:

SPOTIFY_CLIENT_ID='your-spotify-client-id'
SPOTIFY_CLIENT_SECRET='your-spotify-client-secret'
SPOTIFY_REDIRECT_URI=http://127.0.0.1:9090

Usage

spotify-album-cards provides two commands that are meant to be run in order.

get-albums

Downloads all albums from your Spotify account, outputting a csv file.

Usage:

spotify-album-cards get-albums -o albums.csv

Once downloaded, manually edit the resulting csv file to only include rows for albums that you would like to generate prints for.

generate-prints

Generates images from an albums csv file. Currently creates images suitable for printing on 4x6 paper, with up to six albums per card.

Usage:

spotify-album-cards generate-prints -i albums.csv -o prints

Development

To contribute to this tool, first checkout the code. Then create a new virtual environment:

cd spotify-album-cards
python -m venv venv
source venv/bin/activate

Or if you are using pipenv:

pipenv shell

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

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

spotify-album-cards-0.0.2.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

spotify_album_cards-0.0.2-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file spotify-album-cards-0.0.2.tar.gz.

File metadata

  • Download URL: spotify-album-cards-0.0.2.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for spotify-album-cards-0.0.2.tar.gz
Algorithm Hash digest
SHA256 97a151e1d21867595d3544a5ba2185047466add951589571a52c4db0f08009ea
MD5 b197b0b3f217079d9df974b0a15ccfb6
BLAKE2b-256 6fa027bb725b81b9a459890539dc267971a5bedd3588b8112e2cab7fbabc0876

See more details on using hashes here.

File details

Details for the file spotify_album_cards-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: spotify_album_cards-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

File hashes

Hashes for spotify_album_cards-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 070db23f7e708ee74eef71032ccb09c665ddf04e1173ddf8c6678d704489268a
MD5 f223e9f4a2c2da7994968c5c1ef6d2c7
BLAKE2b-256 f27845b759142f98bb5aa9fe66a178234a998e19f3443e642078101c8d696640

See more details on using hashes here.

Supported by

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