Skip to main content

Spotify Fetch

Command-line tool for displaying spotify artist and album information.

Requirements

  1. Make sure you have python and pip installed.

  2. Register a spotify app and name it sfetch or 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.

  1. Put the following variables you just got in your .zshrc or .bashrc or whatever shell you are using
export SPOTIPY_CLIENT_ID='your_client_id'
export SPOTIPY_CLIENT_SECRET='your_client_secret'

Remember to restart your shell!

Installation

Install with pip

pip install sfetch

Install from source

  1. Clone the repository
git clone https://github.com/mihasket/sfetch.git
cd sfetch
  1. Make sure you have the latest version of PyPA’s build installed:
python3 -m pip install --upgrade build
  1. 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

  1. Install the .whl file. 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

Metadata

Release files for sfetch 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sfetch 1.0.3
File Size Uploaded
sfetch-1.0.3.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sfetch 1.0.3
File Interpreter ABI Platform
sfetch-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / sfetch-1.0.3.tar.gz

Download URL sfetch-1.0.3.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7014b1235454375c5b664ce19aa08cd9b8507db58c58b5af080784880c19cf1c
BLAKE2b-256 checksum
How to use checksums
e034d15379a584f7cc248c86ff7a7fa50b8721bd450f7a5feaa80c07418301df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / sfetch-1.0.3-py3-none-any.whl

Download URL sfetch-1.0.3-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4424c9856e19ad49c9a20a9f9f1fa766ab1c66fd5546c90df9cbf4e4c6f0837c
BLAKE2b-256 checksum
How to use checksums
cae883d3104501e4b1f1917b3897719a7aca0aaced86abe333aea0c7ecccc0f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page