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.1.6.tar.gz
(29.0 kB
view hashes)
Built Distribution
Close
Hashes for spotifython-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee4fbe5b92b99120f165e44afabad8b46ea3f1c71efec17d3a0d374b73e80621 |
|
MD5 | 54ca329272fec0d626e64d601c74b8ec |
|
BLAKE2b-256 | a9953cf9b273a28be173fd98755ffd97e17d5897ddb56cedc7ac00f578ddf9c4 |