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 details)

Uploaded Source

Built Distributions

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

Uploaded Source

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

Uploaded Python 3

File details

Details for the file sharp_darwin-1.3.7.tar.gz.

File metadata

  • Download URL: sharp_darwin-1.3.7.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.5

File hashes

Hashes for sharp_darwin-1.3.7.tar.gz
Algorithm Hash digest
SHA256 2fabf64dc1fb2f078bbfa6783898de5216f3771da48d24926fd8ccdbbd970c58
MD5 2e6c8ebdf351a4445b9903c3c7804840
BLAKE2b-256 07362b100082b87a16e6920533ac6449e32328b320abd4775e063c2e4878917e

See more details on using hashes here.

File details

Details for the file sharp_darwin-1.3.7-py3.7.egg.

File metadata

  • Download URL: sharp_darwin-1.3.7-py3.7.egg
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.5

File hashes

Hashes for sharp_darwin-1.3.7-py3.7.egg
Algorithm Hash digest
SHA256 4bb2056764a46bd17026a79004c5d09c2b170ecd5e41f85695f99f610ce05d39
MD5 16f3650375ae240f930b744e8328a27c
BLAKE2b-256 5461b03c6856ddcf18c01e830f845838023057f27e12f57ce16fb2af1cc6fae1

See more details on using hashes here.

File details

Details for the file sharp_darwin-1.3.7-py3-none-any.whl.

File metadata

  • Download URL: sharp_darwin-1.3.7-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.5

File hashes

Hashes for sharp_darwin-1.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8c716a1337780b4841a40fee9e08257398a245bc5d40f153ccf5c568a6d3d21d
MD5 8e80f0492eee1b3625c45e9c2cf0cf4d
BLAKE2b-256 ffde57cc18709631c25e833632bf07a45d3a9122718ca5be02c8f57fac7704da

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