Command-line tool for displaying spotify artist and album information.
Project description
Spotify Fetch
Command-line tool for displaying spotify artist and album information.
Requirements
-
Make sure you have
pythonandpipinstalled. -
Register a spotify app and name it
sfetchor whatever name you would like.
The redirect URI can be any valid URI such as http://localhost, http://example.com.
Once you have successfully registered an app, find your Client ID and Client Secret.
Don't share your Client ID and Client Secret.
- Put the following variables you just got in your
.zshrcor.bashrcor whatever shell you are using
export SPOTIPY_CLIENT_ID='your_client_id'
export SPOTIPY_CLIENT_SECRET='your_client_secret'
Installation
Install with pip
pip install sfetch
Install from source
- Clone the repository
git clone https://github.com/mihasket/sfetch.git
cd sfetch
- Make sure you have the latest version of PyPA’s build installed:
python3 -m pip install --upgrade build
- Run this command in the same directory as
pyproject.toml
python3 -m build
This will create two files in the dist directory. Example:
dist/
├── sfetch-1.0.0-py3-none-any.whl
└── sfetch-1.0.0.tar.gz
The tar.gz file is a source distribution whereas the .whl file is a built distribution
- Install the
.whlfile. Example:
pip install dist/sfetch-1.0.0-py3-none-any.whl
The 1.0.0 is for the version of the application.
If you want to uninstall use:
pip uninstall sfetch
Usage example
For displaying artist information
sfetch --artist "C418"
For displaying album information
sfetch --artist "C418" --album "Volume Beta"
For additional help
sfetch --help
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sfetch-1.0.0.tar.gz.
File metadata
- Download URL: sfetch-1.0.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9efff6b49710ca3b994ced9e6d70803eaf023f833c320a39afa73d6d891475c
|
|
| MD5 |
fd1edb2da59164f76b0017fceb737bbb
|
|
| BLAKE2b-256 |
42d878a77633d73a1df1ebc16a5a906582f6358dac3f6a60cb984976035e4600
|
File details
Details for the file sfetch-1.0.0-py3-none-any.whl.
File metadata
- Download URL: sfetch-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10af01546b6983e9e4938866b764c565390b25c6b7df5ee6a84d87433085541e
|
|
| MD5 |
d051a9cc50a7448e4e2751b0616b2c2f
|
|
| BLAKE2b-256 |
8f877e92f58bae5501c01333b50c0e8ed40ff8a7dc0b7d02bc245ae864252379
|