A command line interface for spotifython intended for use with spotifyd
Project description
A command line interface to the Spotify API using spotifython as a backend. This tool is developed for the use in scripting on linux and is integrated with the spotifyd player. All API access except playback modification is readonly.
Installation
python 3.10 or higher is required
# Linux/macOS
python3 -m pip install -U spotifython-cli
# Windows
py -3 -m pip install -U spotifython-cli
To install the development version, run:
git clone https://github.com/vawvaw/spotifython-cli
cd spotipython-cli
python3 -m pip install -U .
Dependencies
spotifyd for player integration
dmenu for interactive selection of content
Example
spotifython-cli play
With dmenu:
spotifython-cli play --queue 'saved@#ask@#ask'
Or for scripting:
spotifython-cli metadata --format "{title:.30} - {artist_name:.18}"
Config
~/.config/spotifython-cli/config
[Authentication]
client_id = "your client id
client_secret = "your client secret"
# alternative to client_secret
client_secret_command = "cat /path/to/client_secret"
[spotifyd]
notify = true # optional
[playback]
device_id = "your playback device" # optional
[interface]
# dmenu with custom options or a program with a similar interface (gets options on stdin and writes results to stdout)
dmenu_cmdline = dmenu -i -l 50 -p {prompt} # optional
For help on how to obtain client id and secret refer to the spotifython documentation.
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 spotifython_cli-0.3.7.tar.gz.
File metadata
- Download URL: spotifython_cli-0.3.7.tar.gz
- Upload date:
- Size: 20.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e883621bcb40e29d6accd35a7b115e2339713bb43a327d1350766f8e1912fa72
|
|
| MD5 |
492afc86e3707b87e5618eccc9cab674
|
|
| BLAKE2b-256 |
082d4eb2395602487266929c3889dde0ee9837f6fca2615d200d6650441819b0
|
File details
Details for the file spotifython_cli-0.3.7-py3-none-any.whl.
File metadata
- Download URL: spotifython_cli-0.3.7-py3-none-any.whl
- Upload date:
- Size: 22.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ca6826ac09068461edb68fb674847a3fb44f8be7d074abaf8c7db64b4eeb178
|
|
| MD5 |
cfc81bec29f88fdd6612f86b1137148b
|
|
| BLAKE2b-256 |
e200fea3e419397d5ccd407577424b1175c4b00ce081fc0888fe8ff6f6fc0806
|