Registry / communication / spotifycl

spotifycl

JSON →
library1.3.3pypypi✓ verified 88d ago

A command-line interface for Spotify that controls playback, manages playlists, and displays current track info. Version 1.3.3, updated August 2024. Maintenance frequency is low; no recent activity.

pip install spotifycl
INSTALL
IMPORT
SIG · SPOTIFYCL
S
spotifycl
communicationpythonv1.3.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

spotifycl
✓ import spotifycl
✗ import spotify
Common confusion with the official spotify library.

Run the interactive CLI after installing. Requires Spotify API credentials set via environment variables or config file.

import spotifycl # Check version print(spotifycl.__version__) # Launch the interactive CLI spotifycl.run()
spotifycl --version
Debug
Known issues
breakingCache path changed in v1.3.0 from CWD to spotifyCL directory. Old cache will be ignored.
fix
Delete old .cache files in project directories. Reauthenticate.
affects: >=1.3.0
gotchaThe library name is 'spotifycl' not 'spotify' or 'spotipy'. Installing 'spotify' will get a different package.
fix
Run: pip install spotifycl
affects: all
deprecatedSupport for termcolor was removed in v1.3.1. If you wrote custom code relying on termcolor, it will break.
fix
Use rich for colored output. Example: from rich import print
affects: >=1.3.1
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'spotifycl'
Package not installed.
fix
Run: pip install spotifycl
AttributeError: module 'spotifycl' has no attribute '__author__'
Upgrading from <1.3.2 where __author__ was not exposed.
fix
Update to v1.3.2+: pip install --upgrade spotifycl
spotipy.SpotifyException: HTTP Error 401: Unauthorized
Spotify API credentials missing or invalid.
fix
Set environment variables SPOTIPY_CLIENT_ID, SPOTIPY_CLIENT_SECRET, and SPOTIPY_REDIRECT_URI. See https://developer.spotify.com/documentation/web-api/concepts/apps
Upgrade
Version history
1.3.3latest on PyPI · released Jan 31, 2024
Audit
Dependencies
spotipyrequiredCore dependency for Spotify Web API interaction.
richrequiredUsed for colorful terminal output and styling.
Agent activity
34 hits · last 30 days
node
30
OpenAI (training)
1
Resources
spotifycl — pip install spotifycl · libregistry