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
File details
Details for the file spotifython_cli-0.3.3.tar.gz
.
File metadata
- Download URL: spotifython_cli-0.3.3.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcfc8acce3aba61c8b894482db7ecbd56798c6efe097e1a3c7eaa18332ca9252 |
|
MD5 | 4fb77cac4cca94de36b98b807b9480b6 |
|
BLAKE2b-256 | 7e22d5a3b34d1149fe9b6500218dd4dfdbe9ca98498f1cbcd87f3828086e641b |
File details
Details for the file spotifython_cli-0.3.3-py3-none-any.whl
.
File metadata
- Download URL: spotifython_cli-0.3.3-py3-none-any.whl
- Upload date:
- Size: 20.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a208ea4aa8dbd403fdc354377431acea94f8ef9a46ee546db79aa94784a30e44 |
|
MD5 | 68ebb3015ee7bee2aff54b7728544708 |
|
BLAKE2b-256 | 0f0c86b09cf3bb83b9aebfa69881238d55347edc26a0fd2b9817c5d6855388a1 |