Dbus-Spotify-Status
Requirements
Requires python3 dbus package:
λ sudo apt install python3-dbus
Installation
Install with pip:
λ pip install spotify-dbus-status
Usage
Enter spotify-dbus-status at the command line:
λ spotify-dbus-status Flying Lotus - Zodiac Shit - Cosmogramma
The (–all) flag is implicit if nothing is specified:
λ spotify-dbus-status --all Flying Lotus - Zodiac Shit - Cosmogramma
Get specific data:
λ spotify-dbus-status --album Cosmogramma λ spotify-dbus-status --artist Flying Lotus λ spotify-dbus-status --song Zodiac Shit
Ordered output:
λ spotify-dbus-status --song --artist Zodiac Shit - Flying Lotus
Custom seperator:
λ spotify-dbus-status --song --album --sep=", " Zodiac Shit, Cosmogramma
Provide Template string:
λ spotify-dbus-status --template="[Artist: {artist} | Album: {album}]"
[Artist: Flying Lotus | Album: Cosmogramma]
As JSON:
λ spotify-dbus-status --format=json
{"album": "Cosmogramma", "artist": "Flying Lotus", "song": "Zodiac Shit"}
You can then parse by piping into jq:
λ spotify-dbus-status --format=json | jq -r '.artist + " - " + .song' Flying Lotus - Zodiac Shit
i3blocks Integration
Add the following section (or similar) to you i3blocks.conf:
[spotify]
label=
command=spotify-dbus-status --template="{artist} - {song}"
interval=2
signal=10
color=#24CF5F
Metadata
Release files for spotify-dbus-status 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| spotify-dbus-status-0.1.4.tar.gz | 2.9 kB | Without provenance | Details |
Release files / spotify-dbus-status-0.1.4.tar.gz
| Download URL | spotify-dbus-status-0.1.4.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
11d2f3ddaa74ed5f5951bdac7b73c696dbdaa553c84dbf254c6759651f8ef2e6
|
|
BLAKE2b-256 checksum How to use checksums |
6ff2eeb96f71b9b678d2688bd6f7dfcea1676523daeaf93a5fb50934ceab40b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1
|
Security for spotify-dbus-status 0.1.4
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.