Skip to main content

Simple Spotify Client

Project description

🎧 Spotify CLI Client

A powerful and interactive command-line interface to control your Spotify playback using Python and Spotipy with a beautiful TUI powered by InquirerPy.


🚀 Features

  • 🔍 Search for any track and play it instantly.
  • 📚 View and play songs from your personal playlists.
  • ⏯️ Full playback controls: play, pause, next, prev, stop.
  • 🎛️ Intelligent device selection.
  • ➕ Add tracks to queue while music is playing.
  • 🔄 Option to play full playlist or individual tracks.
  • 💾 Stores credentials in a local config file (~/.spotifyclient/config.json).

🛠️ Installation

pip3 install spotify-cli-client

🎹 Setup

Before using the CLI, set up your Spotify API credentials:

  1. Go to Spotify Developer Dashboard
  2. Create an app and get your Client ID, Client Secret, and Redirect URI.

Then run:

spt init

The CLI will prompt you to enter and save your credentials.


🧠 Usage

spt <command>

Available Commands

Command Description
init Interactive menu to access features
my_playlists Browse and play from your playlists
search Search for a song and play it
play Resume current playback
pause Pause the current song
next Skip to the next track
prev Play the previous track
stop Pause and reset playback

📁 Project Structure

spotify_cli_client/
├── __init__.py
├── cli.py              # CLI entry using Click
├── spotifyCLI.py       # Interactive CLI wrapper
└── spotifyClient.py    # Spotify API client logic

💡 Example

$ spt init

? Select a feature to use:
   My Playlists
    Search a Song

🤝 Contributing

PRs are welcome! Feel free to fork this repo and submit improvements, bugfixes, or new features.


📜 License

MIT License © 2025 Sudharshan V


🔗 Credits

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

spotify_cli_client-0.1.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spotify_cli_client-0.1.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file spotify_cli_client-0.1.0.tar.gz.

File metadata

  • Download URL: spotify_cli_client-0.1.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for spotify_cli_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ac7f8063b4acfd4ccecae4bb5dadead7be62a16573fa6d319cf60a4fa4439c84
MD5 dae619cca414457dfce4b5f583191580
BLAKE2b-256 a8b9826ce1350e4a29e9ac851020e1398f14f5d5c5aa3f263654de6b278234d5

See more details on using hashes here.

File details

Details for the file spotify_cli_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for spotify_cli_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d3a459fa80de75e8698a63c992f513853bd20d203ae21e54c71de2dfd5e5c4ee
MD5 9f06580cc680d56d2ae60ea4d6578242
BLAKE2b-256 4111ae51bfb68a04c684378f9fc37bc5604c350c6910e16b10c279bc98d4437b

See more details on using hashes here.

Supported by

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