Lightweight Spotify Command-Line interface for Linux
Python 2.7 or Python 3.3+
See requirements.txt for required python packages. They will be automatically installed when you install via pip.
You will need a Spotify Premium account and a Spotify username (if you signed up via Facebook you can follow the instructions here to get your username).
You will need libspotify, pyaudio or pyalsaaudio, and libffi-dev installed.
You will either need to install pyaudio
or alsaaudio
by (pyaudio instructions Here and pyalsaaudio instructions here).
Use your distribution's package manager for libffi-dev (f.x. apt-get install libffi-dev
).
To install libspotify, see Pyspotify installation. (Archives are available at libspotify-archive), thanks to the great guys at Mopidy!.
For DBus integration you'll need python-dbus and python-gobject2. Use your distribution's package manager. Spoppy will work without these packages but won't expose it's DBus procedures.
pip install spoppy
To install globally you will probably need superuser privileges.
After installation run spoppy
in your terminal and you're all set!
- Create a virtualenv (python 2.7 or python 3.3+)
- Clone this project
- Activate your virtualenv
- Install requirements (
pip install -r requirements.txt
) - Run
python scripts/spoppy
(you will be asked for username/password)
- Run
make install_dbus
- Make sure you have python-gobject2 installed
- Symlink gi (and possibly glib) to your virtualenv (that is, if you're not installing globally!)
- The service will be available at "/com/spoppy" (f.x.
qdbus com.spoppy /com/spoppy com.spoppy.PlayPause
)
To enable verbose logging, set the SPOPPY_LOG_LEVEL
environment variable to 'DEBUG'
.
make test