Skip to main content

Create/update a Spotify playlist from a local m3u playlist

Project description

Convert local playlist to Spotify playlist

Build, Test, Lint PyPI version

Currently works for m3u files; m3u8 support to come!

Usage

usage: tospotify [-h] [-v] [--public] [--playlist-id PLAYLIST_ID]
                 spotify_username playlist_path

Create/update a Spotify playlist from a local m3u playlist

positional arguments:
  spotify_username      Spotify username where playlist should be updated.
                        Your email address should work just fine, or could
                        find your user id through e.g. the developer console
  playlist_path         full path to the playlist

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         print all the steps when searching for songs
  --public              playlist is public, otherwise private
  --playlist-id PLAYLIST_ID
                        do not create a new playlist, instead update the
                        existing playlist with this id

Example

  • Linux/MacOS

      tospotify --verbose "john.doe@gmail.com" "D:/playlist/name.m3u"
    
  • Windows*

      python -m tospotify "john.doe@gmail.com" "D:/playlist/name.m3u"
    

*entry_points does not seem to simply work on Windows

Requirements

  1. First need to enable Developer Dashboard and your 'app'.

  2. Setup some environment variables:

Linux

export SPOTIPY_CLIENT_ID="<paste-from-dev-dashboard>"
export SPOTIPY_CLIENT_SECRET="<paste-from-dev-dashboard>"
export SPOTIPY_REDIRECT_URI="<your-chosen-uri>"

Windows

Same as linux but use set instead of export

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

tospotify-0.2.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tospotify-0.2-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file tospotify-0.2.tar.gz.

File metadata

  • Download URL: tospotify-0.2.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for tospotify-0.2.tar.gz
Algorithm Hash digest
SHA256 5f12a66d4534fef0f2081b4e2f211e5b48a8da8ebdf989b4d7b8c457ff0cb5ef
MD5 4ae7dc4076f1990b7c898c1b42899b35
BLAKE2b-256 0597cd55749927fbf53685145cecbe7fe4570b233d044f47842e8ef950ba772a

See more details on using hashes here.

File details

Details for the file tospotify-0.2-py3-none-any.whl.

File metadata

  • Download URL: tospotify-0.2-py3-none-any.whl
  • Upload date:
  • Size: 22.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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for tospotify-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1b8d40b69be8561290d4c76125c9bdbb6a46ff31f0087b0ba8221f11d1223cd7
MD5 2d0c6a6b56b978ddf545f50e988e30a8
BLAKE2b-256 8c8c1ffd59f879d2da37d7c575d430a5c6eca359375f988c532a0707831a3091

See more details on using hashes here.

Supported by

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