A caching python interface to readonly parts of the spotify api.
Project description
A readonly wrapper for the Spotify API that relies on heavy caching to minimise the number of requests.
Key Features
caching requested data (note that non public data will be cached)
Installation
python 3.10 or higher is required
# Linux/macOS
python3 -m pip install -U spotifython
# Windows
py -3 -m pip install -U spotifython
To install the development version, run:
$ git clone https://github.com/vawvaw/spotifython
$ cd spotipython
$ python3 -m pip install -U .
Quick Example
import spotifython
if __name__ == "__main__":
scope = spotifython.Scope(playlist_read_private=True, user_library_read=True)
authentication = spotifython.Authentication(
client_id="client_id",
client_secret="client_secret",
scope=scope
)
client = spotifython.Client(authentication=authentication)
playlists = client.user_playlists()
for playlist in playlists:
print(playlist.name)
client.close()
Links
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
spotifython-0.2.10.tar.gz
(31.5 kB
view details)
Built Distribution
File details
Details for the file spotifython-0.2.10.tar.gz
.
File metadata
- Download URL: spotifython-0.2.10.tar.gz
- Upload date:
- Size: 31.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90fb80b41ab5181118aeab9e46435d8bac1f4f1747bd07ce48313131180af164 |
|
MD5 | ac8aa4104d647fd09f587c74fc085685 |
|
BLAKE2b-256 | e4aebf8ea2ac3e58bf67d3c00fcc20232e44f8aacdf5abf9ea5c08c72ed9079c |
File details
Details for the file spotifython-0.2.10-py3-none-any.whl
.
File metadata
- Download URL: spotifython-0.2.10-py3-none-any.whl
- Upload date:
- Size: 39.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | afd7807bd9bbc3f351757889c785ee8fcb0811a306333f82ad2a0ce6a206c3e2 |
|
MD5 | edf4aeacb07b2bbfa785ee51fc92f5a5 |
|
BLAKE2b-256 | a28ba71926e84125ddc294e456af77025afaafdf955ff6d66ceaecac10763b5e |