Tools for interacting with the Spotify API.
Project description
spotify-tools
A Python library for interacting with the Spotify API.
Installation
pip install spotify-tools
Features
- Simple client wrapper around
spotipywith OAuth authentication - Pydantic schemas for Spotify API responses
- Playlist management (create, update, get tracks)
- Track search with fuzzy matching support
Usage
from spotify_tools import Client, search_track_fuzzy, get_playlist_tracks
# Create a client (uses environment variables for credentials)
client = Client()
# Search for a track with fuzzy matching
track, score = search_track_fuzzy(client, "Song Title", "Artist Name")
# Get all tracks from a playlist
tracks = get_playlist_tracks(client, "playlist_id")
Configuration
Set the following environment variables:
SPOTIFY_CLIENT_ID- Your Spotify app client IDSPOTIFY_CLIENT_SECRET- Your Spotify app client secretSPOTIFY_REDIRECT_URI- OAuth redirect URI (default:http://localhost:8080)
License
GPL-3.0-or-later
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
spotify_tools-0.0.1.tar.gz
(121.1 kB
view details)
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 spotify_tools-0.0.1.tar.gz.
File metadata
- Download URL: spotify_tools-0.0.1.tar.gz
- Upload date:
- Size: 121.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b198b605d960a4d1fc911d8d2c940ad546fc8269e153e8000c349e45e60219a
|
|
| MD5 |
7a1095e63b9e087f46d2ab1a9663bc0a
|
|
| BLAKE2b-256 |
ae531b5e3e73cd0a4adb4f95b9e4cdd344cac4f1edd53e5c0be7d7ba085d3691
|
File details
Details for the file spotify_tools-0.0.1-py3-none-any.whl.
File metadata
- Download URL: spotify_tools-0.0.1-py3-none-any.whl
- Upload date:
- Size: 26.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
241dd69f8478f53b39b0f7f386197a04926843552f0a19d0d4c9048695334712
|
|
| MD5 |
507ed7fdd8b4ee5d7fd4494cdb139930
|
|
| BLAKE2b-256 |
710270c24f699a05b184b250b70b612c8c8c9c2b9a0a7f8c069f8144f938a2e1
|