Skip to main content

Spotify Terminal

Terminal program to play/control music via Spotify. Some features require a Spotify Premium account.

Install

Requires Python 3. Older versions can be manually installed for Python 2 (See releases: https://github.com/marcdjulien/spotify-terminal/releases)

pip install spotify-terminal

Or clone/download this repository and run:

python setup.py install 

This application uses Unicurse: https://pypi.org/project/UniCurses (A version of this already comes with the checkout)

Usage

Execute the following command to run the program:

spotify-terminal.py [-u username]

Optional: username is either the email associated with your Spotify account or the user id.

? Search

By typing ? you can begin a search..

: Commands

By typing : you can enter commands. The following is a list of all commands:

search [query] | Search for an Artist, Album or Song.

find [index] [query] | Find an entry in the currently list that contains query. The UI will automatically go to the index found entry.

volume [0-100] | Set the volume.

play | Start playing.

pause | Pause the player.

repeat [off|context|track] | Set the repeat mode.

shuffle [True|False] | Set the shuffle mode.

exit | Exit the application.

Other Tips and Tricks

TAB while on an artist's page to toggle between their main page and a list of all of their tracks. This is useful if you want to listen to all tracks by an artist within the same context.

/ is a shortcut to the find command. You can also type n or p to find a next or previous entry (similar to vim).

:q to exit.

Backspace to cycle through previous track listings.

Shift + S on any track to immediately go to the album page.

Shift + D on any track to immediately go to the artist page.

Shift + | to immediately go to the context of the currently playing song.

Shift + X to immediately go to the album page of the currently playing song.

Shift + C to immediately go to the artist page of the currently playing song.

Shift + R to re-sync the player.

Shift + > to play the next song.

Shift + < to play the previous song.

Shift + W to see list of your devices.

Shift + 0-9 to set to set the volume. 1...0 for volume 10...100.

Shift + ` to mute.

Shift + P to add a song to a playlist.

Shift + O to create a new playlist.

DELETE to delete a playlist or song from a playlist.

OS Compatibility

This has only been tested on Linux and Windows with a Spotify Premium account. Briefly on Mac.

32-bit Python only.

Feel free to submit pull requests or tickets for issues.

Release files for spotify-terminal 0.15.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spotify-terminal 0.15.3
File Size Uploaded
spotify-terminal-0.15.3.tar.gz 132.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spotify-terminal 0.15.3
File Interpreter ABI Platform
spotify_terminal-0.15.3-py3-none-any.whl Python 3 none any Details

Total release size: 281.6 kB

Release files / spotify-terminal-0.15.3.tar.gz

Download URL spotify-terminal-0.15.3.tar.gz
Size 132.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c8e953e80db1dab9c12da6f4d636e4b0cd6998022d6e6895caf55ea512a770dc
BLAKE2b-256 checksum
How to use checksums
802b50cbda93d4a49489d9f542e57992c73e942c40e4b3620d59931812d95f4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.8

Release files / spotify_terminal-0.15.3-py3-none-any.whl

Download URL spotify_terminal-0.15.3-py3-none-any.whl
Size 149.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
578d069dd46a1cde57f0d4976534cac341231d8c874d7665e069e0fd1bc4b4b8
BLAKE2b-256 checksum
How to use checksums
a7a3f290dcd84c4237253d054155411eb9b9cb823ccbbf2acc05969bcfcf7665
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.8

Release history Release notifications | RSS feed

This release

0.15.3 This release

2 release files

0.15.2

2 release files

0.15.1

2 release files

0.15.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page