Python package to control Spotify and Spotify Connect without requiring spotify locally installed
Project description
Spotify and Spotify Connect CLI
version number: 0.1 author: Hicham Tahiri
Overview
Python package to control Spotify and Spotify Connect without requiring spotify official client locally installed.
Uses the awesome Spotipy library.
Installation
To install use pip:
$ pip install spoticonnect
Or clone the repo:
$ git clone https://github.com/aerospeace/spoticonnect.git
$ cd spoticonnect
$ python setup.py install
Initial setup
To get started, install spoticonnect and create an app on https://developers.spotify.com/
Run spoticonnect
a first time to run the initial environment setup.
- The environment setup will ask you to input your app details (i.e. username, client_id, client_secret and redirect_url).
- The redirect url can be any valid url not bound, for instance http://localhost:888/callback
- Those credentials will be saved in ~/.config/spoticonnect/configuration.ini
- The underlying awesome library Spotipy will then take charge of opening a browser window for you to authorise spoticonnect to access your Spotify app api.
- Following approval, you will have to copy the final url back to your terminal (Yes this is a convoluted process, please blame Spotify, and not nor Spotipy developpers.
Usage
Usage:
spoticonnect play [(album | artist | playlist | track | uri) <query>]
spoticonnect next
spoticonnect previous
spoticonnect replay
spoticonnect pause
spoticonnect stop
spoticonnect vol (show | up | down | set <amount>)
spoticonnect status
spoticonnect share (uri | href)
spoticonnect shuffle
spoticonnect repeat
Contributing
TBD
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
spoticonnect-0.1.tar.gz
(5.0 kB
view details)
File details
Details for the file spoticonnect-0.1.tar.gz
.
File metadata
- Download URL: spoticonnect-0.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.8.0 tqdm/4.41.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55b2fbca2fff2ee0d3a1386462f743060d7f0d579e893f46fae95c1d43db94c0 |
|
MD5 | 337ed7a0e84fee1e1f5ae5007c6278b5 |
|
BLAKE2b-256 | 4ca88f29ed1284ebe524c9c86f9db257ebfbf605a2c6b7ac7fb017736b7d3ee7 |