Skip to main content

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

  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

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

sfetch-1.0.2.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sfetch-1.0.2-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file sfetch-1.0.2.tar.gz.

File metadata

  • Download URL: sfetch-1.0.2.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for sfetch-1.0.2.tar.gz
Algorithm Hash digest
SHA256 198d029c9930bde35a9432482996fc2671bae6f880a363c04be91e4520ecc194
MD5 f8a56f8e8ef8a2770298e4fc75a76084
BLAKE2b-256 783945d3b4adf33a3626865a44a04b1270edd96e957eb42a4dcc103084883390

See more details on using hashes here.

File details

Details for the file sfetch-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: sfetch-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for sfetch-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 36d30f0a0edb5635d130aba170e73c604e1ba793e0233347a7d7a126156b3d49
MD5 b498d08e1de1677fa570b819d3dbff5b
BLAKE2b-256 0cd184522d9fe5c46b5d8b06f528904c2040040f18620aec363128f27e1673ca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page