A lightweight spotify CLI
Project description
# spoppy
Lightweight Spotify Command-Line interface for Linux
# Requirements
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 DBust 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
NOTE: This is kind of broken at the moment, see issue #60
1. Create python3.4+ virtualenv
2. (optional) Create an ENV file containing these values:
* export SPOPPY_USERNAME=your-username
* export SPOPPY_PASSWORD=hunter2
3. Clone this project
4. Activate your virtualenv
5. (if you did #2) Source your ENV file
6. Install requirements
* pip install -r requirements.txt
7. Run `python spoppy.py` (if you did not create an ENV file you can run `python spoppy.py USERNAME PASSWORD`)
# DBus integration
1. Run `make install_dbus`
2. Make sure you have python-gobject2 installed
3. Symlink gobject (and possibly glib) to your virtualenv
* ln -s /usr/lib/python3.5/site-packages/gobject/ $VIRTUAL_ENV/lib/python3.5/site-packages/gobject
* ln -s /usr/lib/python3.5/site-packages/glib/ $VIRTUAL_ENV/lib/python3.5/site-packages/glib
4. The service will be available at "/com/spoppy" (f.x. `qdbus com.spoppy /com/spoppy com.spoppy.PlayPause`)
# Testing
`python setup.py test`
Lightweight Spotify Command-Line interface for Linux
# Requirements
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 DBust 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
NOTE: This is kind of broken at the moment, see issue #60
1. Create python3.4+ virtualenv
2. (optional) Create an ENV file containing these values:
* export SPOPPY_USERNAME=your-username
* export SPOPPY_PASSWORD=hunter2
3. Clone this project
4. Activate your virtualenv
5. (if you did #2) Source your ENV file
6. Install requirements
* pip install -r requirements.txt
7. Run `python spoppy.py` (if you did not create an ENV file you can run `python spoppy.py USERNAME PASSWORD`)
# DBus integration
1. Run `make install_dbus`
2. Make sure you have python-gobject2 installed
3. Symlink gobject (and possibly glib) to your virtualenv
* ln -s /usr/lib/python3.5/site-packages/gobject/ $VIRTUAL_ENV/lib/python3.5/site-packages/gobject
* ln -s /usr/lib/python3.5/site-packages/glib/ $VIRTUAL_ENV/lib/python3.5/site-packages/glib
4. The service will be available at "/com/spoppy" (f.x. `qdbus com.spoppy /com/spoppy com.spoppy.PlayPause`)
# Testing
`python setup.py 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.0.0.tar.gz
(21.6 kB
view hashes)