Skip to main content

fetch audio metadata from spotify and tag them to your audio files

Project description

tag-from-spotify

PyPI output tag-from-spotify is a Python CLI tool to fetch audio metadata from Spotify and tag them to your audio files.

Installation

Since this package is meant to be an end-user app (not a library), it is highly recommended to install with pipx.

pipx install tag-from-spotify

Of course, you can use pip as well.

Authorization

1. Create Credentials

To fetch data from Spotify, you have to register this app to your dashboard and create your Client ID and Client Sectet. You will see the detail process on the Spotify Developer page, but note that you won't have to prepare your website URL or a redirection URL.

2. Set Credentials to Environment Variables

Then add your Client ID and Client Secret to your environment variables like this:

export SPOTIPY_CLIENT_ID='your-spotify-client-id'
export SPOTIPY_CLIENT_SECRET='your-spotify-client-secret'

Usage

tfsp DIR ALBUM_ID

Development

Create an .env that contains Spotify Client ID and Client Secret for the repository root (so you don't have to set them to the environment variables)

SPOTIPY_CLIENT_ID=piyopiyopiyopiyo
SPOTIPY_CLIENT_SECRET=megamegamegamega

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

tag-from-spotify-0.4.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

tag_from_spotify-0.4.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file tag-from-spotify-0.4.0.tar.gz.

File metadata

  • Download URL: tag-from-spotify-0.4.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for tag-from-spotify-0.4.0.tar.gz
Algorithm Hash digest
SHA256 df2d3e808932319a85ab0593888615fface6c564c4c208a68030d6a0a536d388
MD5 e0d65c2c4be0a630b9ebe59c2128e468
BLAKE2b-256 beebba826aba0850a5ceb8596253524084bdb2e756d8efd18a65d207c303bdfb

See more details on using hashes here.

File details

Details for the file tag_from_spotify-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tag_from_spotify-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ff85df2cbf08a42702302dd920d76a3bc5403c041ea65424030c4f75ed1a530
MD5 d8a3f6c0492cb2d59849b7e500a3925d
BLAKE2b-256 91c8a366475a04154231e3fa0b28f7aaa5e94707b05306ac439154c2138c2cee

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