Skip to main content

🎧 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

Metadata

Release files for spotify-cli-client 0.1.0

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-cli-client 0.1.0
File Size Uploaded Provenance Actions
spotify_cli_client-0.1.0.tar.gz 8.1 kB Without provenance Details for spotify_cli_client-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spotify-cli-client 0.1.0
File Interpreter ABI Platform Actions
spotify_cli_client-0.1.0-py3-none-any.whl Python 3 none any Details for spotify_cli_client-0.1.0-py3-none-any.whl

Total release size: 16.2 kB

Release files / spotify_cli_client-0.1.0.tar.gz

Download URL spotify_cli_client-0.1.0.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ac7f8063b4acfd4ccecae4bb5dadead7be62a16573fa6d319cf60a4fa4439c84
BLAKE2b-256 checksum
How to use checksums
a8b9826ce1350e4a29e9ac851020e1398f14f5d5c5aa3f263654de6b278234d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Release files / spotify_cli_client-0.1.0-py3-none-any.whl

Download URL spotify_cli_client-0.1.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d3a459fa80de75e8698a63c992f513853bd20d203ae21e54c71de2dfd5e5c4ee
BLAKE2b-256 checksum
How to use checksums
4111ae51bfb68a04c684378f9fc37bc5604c350c6910e16b10c279bc98d4437b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.1

Security for spotify-cli-client 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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