The next generation Spotify Web API wrapper for Python
Project description
The next generation Spotify Web API wrapper for Python
Documentation
•
Releases
•
Community
Quick example
import asyncio
from spotipy2 import Spotify
from spotipy2.auth import ClientCredentialsFlow
async def get_track_name(track_id):
client = Spotify(
ClientCredentialsFlow(
client_id="client_id",
client_secret="client_secret"
)
)
async with client as s:
track = await s.get_track(track_id)
print(f"The name of the track is {track.name}")
asyncio.run(get_track_name(input("Insert the track ID: ")))
Key Features
- Easy - Makes the Spotify API easy to understand and intuitive, without giving less customization.
- Fast - Thanks to its async design and
aiohttp
speed, spotipy2 is incredibly fast - Type-hinted - All the methods and types are type-hinted, enabling excellent IDE support
- Documented - API methods, types and interfaces are all well documented
Installing
pip install spotipy2
Resources
- Check out the docs at https://spotipy2.org to learn about Spotipy2.
- For any issue, open one here or contact me privately via Telegram.
- If you have anything else to ask, feel free to open a discussion
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
spotipy2-0.6.1.tar.gz
(11.7 kB
view details)
Built Distribution
spotipy2-0.6.1-py3-none-any.whl
(20.8 kB
view details)
File details
Details for the file spotipy2-0.6.1.tar.gz
.
File metadata
- Download URL: spotipy2-0.6.1.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0ed8801285855973a7ff31c2684e5f8546560010e5a696bf498da05f55f5030 |
|
MD5 | 8c2dff522789639323bcbee1bbeeb53b |
|
BLAKE2b-256 | 9919676a8067ce50563b86b91f5f65d4c6fb60e1b13713353ff11613cc682363 |
File details
Details for the file spotipy2-0.6.1-py3-none-any.whl
.
File metadata
- Download URL: spotipy2-0.6.1-py3-none-any.whl
- Upload date:
- Size: 20.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54a56d2c69571cac5ebdf7650604ce3be39eb794017a9936dfad918bdc94d36d |
|
MD5 | d285d0057cf53b4fe7bf7191af11b412 |
|
BLAKE2b-256 | 447cd1d3d4944104c69b6022c521df8496b8497022df7c41c4a29efbded23872 |