Skip to content
forked from bjarneo/Pytify

A CLI application for controlling Spotify

License

Notifications You must be signed in to change notification settings

bharath-123/Pytify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pytify

Donate Code Climate

Pytify logo

Search and start songs from the CLI.
Linux and OS X support.

Spotify must be running in the background in order to use this cli remote

Python 3 support. For Python 2 support use this release: v2.1.0

Image of terminal

Installation

$ pip install pytify

Python 2

$ pip install pytify==2.1.0

Linux you need to install python-dbus package.

$ # Example using apt-get
$ apt-get install python-dbus

Credentials

This package now must use credentials in order to search for songs.

Support for client credentials flow. Please follow these steps:

  1. Register app: https://developer.spotify.com/my-applications/#!/applications
  2. Edit your ~/.bashrc to export following values:
export SPOTIPY_CLIENT_ID='your-spotify-client-id'
export SPOTIPY_CLIENT_SECRET='your-spotify-client-secret'

Features

  • Commands
  • Auto suggest (based on history)
  • Tab through history
  • Search history
  • Search and play songs
  • CLI commands
  • VIM navigation bindings

Clone repo

$ git clone https://github.com/bjarneo/Pytify.git
$ cd Pytify
$ sudo python setup.py install

Usage

# To start the app type
$ pytify

# next song
$ pytify -n

# prev song
$ pytify -p

# play and pause song
$ pytify -pp

# Current playing song
$ pytify -c

Commands
commands

Commands:
 current              print current song
 help                 list all commands 
 next                 play next song 
 pp                   play or pause song 
 stop                 stop 
 prev                 play previous song 
 history              last five search results 

Install dev dependencies

pip version must be > 9

$ pip install -r requirements.txt

Dependencies

* requests
* prompt-toolkit

Contributing

Contributions are appreciated.

Contributors

  • @joined - OS X
  • @adam410 - OS X issue
  • @Newky - Better structure
  • @ymski - OS X
  • @wohlfea - Made it compatible with python 3.5
  • @ddiddi - Added search phrase history browsing. (auto complete)
  • @kmatt - Minor UX changes
  • .... and other.. please add your name and code update!

Logo

Logo by theodorosploumis. Thank you very much!

Donation

If this project has been helpful in any way, and you want to treat me a cup of coffee, please donate :)

paypal

About

A CLI application for controlling Spotify

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%