Skip to main content

Spotify Playlist Manager

Project description

Sharp-Darwin

Python CLI Spotify utility.

Why?

Why "sharp-darwin"? Why not? I have huge creativity when naming things, so I picked two incredible words to pair for your enjoyment.

Purpose

This project started with a need to consolidate my Spotify playlists. I keep monthly playlists of the things I like. After three years of Spotify monthly playlist making... I have a lot of playlists. My goal was to consolidate the lists into quarterly (most recent lists), half year, and year playlists (oldest lists).

Getting Started

  1. Install sharp-darwin from PyPi: https://pypi.org/project/sharp-darwin/ pip install sharp-darwin
  2. Next, you'll need to set up your own Spotify app: https://developer.spotify.com/my-applications
  3. Create a new app, or reuse an existing. If creating a new app, provide at least the required fields.. whatever you want. After creation, click Edit Settings. In the Redirect URIs field, simply enter https://localhost.
  4. On the main app page, you'll need to fetch the Client ID and Client Secret.
  5. Set up envionmental vars as indicated in the below section.
  6. Run the app! sharp-darwin --help.

Environmental Variables

Sharp-Darwin can import configuration from envionmental variables or from a .env file. If you choose to use a .env file, you can specifiy the location of the file on the command line sharp-darwin --env /path/to/my/dot/env.

Variables

Most items should be self-explanatory. Here's a few which are not:

  • SPOTIPY_REDIRECT_URI: set this to https://localhost to locallly fetch an OAuth token. If you know what you're doing, you know how to set this. Otherwise.. stick to the suggested.
  • SHARP_DARWIN_CRED_CACHE: this is the location of the Spotipy OAuth credential cache. It will default to the current working directoy if not set.

Example .env file:

SPOTIPY_USERNAME=you_spotify_username
SPOTIPY_CLIENT_ID=your_spotify_client_id
SPOTIPY_CLIENT_SECRET=your_spotify_client_secret
SPOTIPY_REDIRECT_URI=https://localhost
SHARP_DARWIN_CRED_CACHE=/path/to/cred/cache

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

sharp_darwin-1.3.7.tar.gz (11.1 kB view hashes)

Uploaded Source

Built Distributions

sharp_darwin-1.3.7-py3.7.egg (11.4 kB view hashes)

Uploaded Source

sharp_darwin-1.3.7-py3-none-any.whl (11.7 kB view hashes)

Uploaded Python 3

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