Spotifier
🎶 A Spotify Web API Library for Modern Python
Notice
I do not recommend using this package as it is not yet ready for use.
Feature
- All functions supports type hint (Up to the level of TypedDict!)
- Reproduce API documentation with code as much as possible (You can handle errors w/o wasting requests!)
Install
pip install git+https://github.com/skmatz/spotifier.git
Quick Start
import os
import webbrowser # to open URL in browser
from spotifier import Spotify
from spotifier.oauth import SpotifyAuthorizationCode
oauth = SpotifyAuthorizationCode(
client_id=os.environ["SPOTIFY_CLIENT_ID"],
client_secret=os.environ["SPOTIFY_CLIENT_SECRET"],
redirect_uri=os.environ["SPOTIFY_REDIRECT_URI"],
)
webbrowser.open(oauth.get_authorize_url())
url = input("Input redirected URL: ")
code = oauth.parse_response_code(url)
oauth.set_token(code)
client = Spotify(oauth)
print(client.get_current_users_profile()["display_name"]) # your Spotify nickname
Supported API
- Authorization Code Flow
- Client Credentials Flow
Metadata
Release files for spotifier 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spotifier-0.1.0.tar.gz | 12.7 kB | Without provenance | Details for spotifier-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spotifier-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for spotifier-0.1.0-py3-none-any.whl |
Total release size: 25.9 kB
Release files / spotifier-0.1.0.tar.gz
| Download URL | spotifier-0.1.0.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3533ff36ac7b6a242948ca70f157bc4ebc2ef989619ba0fd2390f7d77b1aa6e1
|
|
BLAKE2b-256 checksum How to use checksums |
c714d06ba1d0e0d43e15aeffe1c9766eddeda02338d39cae1a85acc96a8a3552
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.2 Linux/5.0.0-1035-azure
|
Release files / spotifier-0.1.0-py3-none-any.whl
| Download URL | spotifier-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
087626887d386980681d8bae3718c05c59ababa5763a695ee7f19f30c2a8d7f5
|
|
BLAKE2b-256 checksum How to use checksums |
31bc67a2f140e4371461e2099c7ba0ef905703d0e22c6b02d58fb1b41ff6f2c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.2 Linux/5.0.0-1035-azure
|
Security for spotifier 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.