A lightweight spotify CLI
Project description
spoppy
========
Lightweight Spotify Command-Line interface for Linux
Requirements
==============
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 <https://community.spotify.com/t5/Help-Accounts-and-Subscriptions/How-do-i-find-my-username-when-using-Facebook-login/td-p/859795>`_ to get your username).
You will need libspotify, pyaudio or pyalsaaudio, and libffi-dev installed.
You will either need to install :code:`pyaudio` or :code:`alsaaudio` by (pyaudio instructions `Here <https://people.csail.mit.edu/hubert/pyaudio/>`_ and pyalsaaudio instructions `here <http://larsimmisch.github.io/pyalsaaudio/pyalsaaudio.html#installation>`_).
Use your distribution's package manager for libffi-dev (f.x. :code:`apt-get install libffi-dev`).
To install libspotify, see `Pyspotify installation <https://pyspotify.mopidy.com/en/latest/installation/#install-from-source>`_. (It's also available in the `AUR <https://aur.archlinux.org/packages/libspotify/>`_).
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
==============
:code:`pip install spoppy`
To install globally you will probably need superuser privileges.
After installation run :code:`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 (:code:`pip install -r requirements.txt`)
5. Run :code:`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!)
4. The service will be available at "/com/spoppy" (f.x. :code:`qdbus com.spoppy /com/spoppy com.spoppy.PlayPause`)
Testing
=========
:code:`make test`
========
Lightweight Spotify Command-Line interface for Linux
Requirements
==============
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 <https://community.spotify.com/t5/Help-Accounts-and-Subscriptions/How-do-i-find-my-username-when-using-Facebook-login/td-p/859795>`_ to get your username).
You will need libspotify, pyaudio or pyalsaaudio, and libffi-dev installed.
You will either need to install :code:`pyaudio` or :code:`alsaaudio` by (pyaudio instructions `Here <https://people.csail.mit.edu/hubert/pyaudio/>`_ and pyalsaaudio instructions `here <http://larsimmisch.github.io/pyalsaaudio/pyalsaaudio.html#installation>`_).
Use your distribution's package manager for libffi-dev (f.x. :code:`apt-get install libffi-dev`).
To install libspotify, see `Pyspotify installation <https://pyspotify.mopidy.com/en/latest/installation/#install-from-source>`_. (It's also available in the `AUR <https://aur.archlinux.org/packages/libspotify/>`_).
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
==============
:code:`pip install spoppy`
To install globally you will probably need superuser privileges.
After installation run :code:`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 (:code:`pip install -r requirements.txt`)
5. Run :code:`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!)
4. The service will be available at "/com/spoppy" (f.x. :code:`qdbus com.spoppy /com/spoppy com.spoppy.PlayPause`)
Testing
=========
:code:`make test`
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
spoppy-1.10.3.tar.gz
(35.8 kB
view hashes)