Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.
/ spotify-manager Public archive

A Python 3 library wrote to simplify the basic usage of Spotipy

License

Notifications You must be signed in to change notification settings

msolefonte/spotify-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPOTIFY-MANAGER

Description

spotify-manager is a Python 3 library wrote to simplify the basic usage of Spotipy

Installation (On work)

If you already have Python3 on your system you can install the library simply by downloading the distribution, unpack it and install in the usual fashion:

python3 setup.py install

You can also install it using a popular package manager with

pip3 install spotify-manager

or

easy_install spotify-manager

Dependencies

  • Spotipy - spotify-account requires spotipy to be installed
  • Requests - spotipy requires the requests package to be installed
  • Spotify Premium - premium is required to use the library

Quick Start

To get started, simply install spotify-account, create a spotifyAccount object and call methods:

from spotify_manager import SpotifyManager
sm = SpotifyManager(SPOTIFY_USERNAME, SPOTIFY_CLIENT_ID, 
                                    SPOTIFY_CLIENT_SECRET, SPOTIFY_REDIRECT_URI)

sm.play_song('eminem mockingbird')
# Mockingbird - Eminem is now running on your device

print(sm.get_current_song_info())
>>> {'name': 'Eminem - Mockingbird', 'uri': 'spotify:track:17baAghWcrewNOcc9dCewx'}, 
    'artists': {'all': 'Eminem', 'main': {'name': 'Eminem', 
    'uri': 'spotify:artist:7dGJo4pcD2V6oG8kP0tJRR'}}, 'album': {'name': 
    'Curtain Call (Deluxe)', 'uri': 'spotify:album:71xFWYFtiHC8eP99QB30AA'}, 
    'playlist': {'is_active': False, 'uri': None}}

sm.play_similar_from_current_artist()
# My Band - D12 is now running on your device, followed by a list of another 19 related songs (customizable)

Documentation

https://spotify-manager.readthedocs.io/en/latest/

Reporting Issues

If you have suggestions, bugs or other issues specific to this library, file them here. Or just send me a pull request.

Version

  • 1.0 - 17/03/2018 - Initial release.
  • 1.1 - 27/03/2018 - Added some new methods and revised the old ones.
  • 1.2 - 20/03/2018 - Added some new methods and revised the old ones.
  • 1.3 - 4/05/2018 - All methods are redone, increasing transparency level.

About

A Python 3 library wrote to simplify the basic usage of Spotipy

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages