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:
- Go to Spotify Developer Dashboard
- Create an app and get your
Client ID,Client Secret, andRedirect 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac7f8063b4acfd4ccecae4bb5dadead7be62a16573fa6d319cf60a4fa4439c84
|
|
| MD5 |
dae619cca414457dfce4b5f583191580
|
|
| BLAKE2b-256 |
a8b9826ce1350e4a29e9ac851020e1398f14f5d5c5aa3f263654de6b278234d5
|
File details
Details for the file spotify_cli_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: spotify_cli_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3a459fa80de75e8698a63c992f513853bd20d203ae21e54c71de2dfd5e5c4ee
|
|
| MD5 |
9f06580cc680d56d2ae60ea4d6578242
|
|
| BLAKE2b-256 |
4111ae51bfb68a04c684378f9fc37bc5604c350c6910e16b10c279bc98d4437b
|