drwxr-xr-x zerbaib flagship python rest-api requests
Volta.py
The official Python library for the Volta Music public API. A lightweight client with a clean client.get / post / put / delete interface to manage your library, playlists and the global catalog.
- Automatic token management: fetch, refresh and persist to disk
- Silent retry on 401 and background auto-refresh thread
- Typed exceptions (NotFoundError, RateLimitError…)
- Context manager for a clean shutdown, client-side search helpers
$ cat main.py
1from VoltaLibPython import VoltaClient
2
3with VoltaClient() as client:
4 tracks = client.get.library.tracks(
5 search="daft punk"
6 )
7 pl = client.post.library.playlist("Roadtrip")
8 client.post.library.playlist_track(
9 pl["id"], tracks[0]
10 )
$ pip install git+https://github.com/VoltaMusic/Volta.py.git
zerbaib@portfolio: ~ 