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 queue playlist --playlist-dmenu --dmenu
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"
[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
spotifython-cli-0.1.3.tar.gz
(19.1 kB
view hashes)
Built Distribution
Close
Hashes for spotifython_cli-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7041402835647236560d363a539500258c1c7909441466920e567c801fa610a |
|
MD5 | 310f526b5b485c5a1dc2053dcf7e5ccf |
|
BLAKE2b-256 | 8ac4776ecc563c6e2be9b078ee2e3bd417c24768464391c3913e03158dbd4a64 |