Skip to main content

Spotify TUI

Project description

SpoTUI

Version Badge License Badge Code size Badge

Spotify in the terminal.

screenshot

Getting Started

Install with pip install spotui

Please Note: SpoTUI will not work with free Spotify accounts.

Register a developer application at: https://developer.spotify.com/dashboard/login. Once you create the application you'll need to edit it to add a Redirect URI. Use something like 'http://localhost:8888/callback' (it doesn't matter what you use really as long as it matches what's in your config file).

Run spotui to generate a sample config file at ~/.config/spotui/.spotuirc or create one manually with the following:

[spotify_api]
user_name = *Your spotify username*
client_id = *Your application client ID*
client_secret = *Your application secret*
redirect_uri = http://localhost:8888/callback

[other]
use_nerd_fonts = yes
config_version = 1 

Once you're done start the app with spotui, log in via your browser and copy the URL of the broken web page you're taken to. (This ugly authentication process is part of the underlying Spotipy library I use so don't blame me :stuck_out_tongue_winking_eye:)

This app acts like a kind of remote control for Spotify. The best way to use it is in conjunction with Spotifyd which means you won't need to actually have Spotify open. Alternatively, you can just open Spotify on your computer, phone etc. (press d to pick the device to play on).

Controls

Navigation

tab Switch section

k/ Up

j/ Down

g Scroll to top

G Scroll to bottom

Enter Select

/ Search

d Open device menu

Esc/q Quit/Back

Playback

space Play/Pause

n Next track

p Previous track

Seek 10s forwards

Seek 10s backwards

s Toggle shuffle

r Toggle repeat

FAQ

  • What do I do if something breaks? Raise an issue or submit a PR to fix my crappy code :pray:
  • Why can't I play anything? Check you have a device selected (d) and make sure you're using a paid Spotify account
  • I get an error page when I log into Spotify This is correct - just copy the URL and paste it back into the terminal
  • Podcasts aren't playing See: #13

Dependencies

LICENSE

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spotui-0.1.20.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

spotui-0.1.20-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file spotui-0.1.20.tar.gz.

File metadata

  • Download URL: spotui-0.1.20.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for spotui-0.1.20.tar.gz
Algorithm Hash digest
SHA256 340aa83187d91d14b0bae82b24954e630eb6b36418988b4115a224809a980e39
MD5 9d2e94882a2f317751c8a59b660a027d
BLAKE2b-256 2e198636e8974cdc3a4723038c5d89b1251ef1ccb328bfd5441ad91ad6f69df3

See more details on using hashes here.

File details

Details for the file spotui-0.1.20-py3-none-any.whl.

File metadata

  • Download URL: spotui-0.1.20-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for spotui-0.1.20-py3-none-any.whl
Algorithm Hash digest
SHA256 b39318cc38a7f11d63a0ceda67ac52df7b9038e989d54deadc7c727619eadf3c
MD5 cceec4515358c3fe9570239b53159571
BLAKE2b-256 cedbf9dcd0c6f28076d7c6c934333bad32067cb6001fb9ee921f58368ffd338c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page