spotify-manager is a Python 3 library wrote to simplify the basic usage of Spotipy
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
- 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
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)
https://spotify-manager.readthedocs.io/en/latest/
If you have suggestions, bugs or other issues specific to this library, file them here. Or just send me a pull request.
- 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.