Skip to content

gunnardag/spoppy

 
 

Repository files navigation

spoppy

Lightweight Spotify Command-Line interface for Linux

Requirements

Python 2.7 or Python 3.3+

See requirements.txt for required python packages.

You will need a Spotify Premium account.

You will need libspotify, libffi-dev and libasound2-dev installed.

Use your distribution's package manager for libffi-dev and libasound2-dev.

To install libspotify, see Pyspotify installation. (It's also available in the AUR).

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.

Installation

pip install spoppy

To install globally you will probably need superuser privileges.

After installation run spoppy in your terminal and you're all set!

Development

  1. Create a virtualenv (python 2.7 or python 3.3+)
  2. Clone this project
  3. Activate your virtualenv
  4. Install requirements
  • pip install -r requirements.txt
  1. Run python scripts/spoppy (you will be asked for username/password)

DBus integration

  1. Run make install_dbus
  2. Make sure you have python-gobject2 installed
  3. Symlink gi (and possibly glib) to your virtualenv (that is, if you're not installing globally!)
  • ln -s /usr/lib/python3.5/site-packages/gi/ $VIRTUAL_ENV/lib/python3.5/site-packages/gi
  • ln -s /usr/lib/python3.5/site-packages/glib/ $VIRTUAL_ENV/lib/python3.5/site-packages/glib
  1. The service will be available at "/com/spoppy" (f.x. qdbus com.spoppy /com/spoppy com.spoppy.PlayPause)

Testing

python setup.py test

About

A spotify CLI written in python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.5%
  • Other 0.5%