Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CyanBook/spotipy2
The next generation Spotify Web API wrapper for Python 3.7+
https://github.com/CyanBook/spotipy2
spotify spotify-api spotify-library spotify-web-api spotipy
Last synced: 2 days ago
JSON representation
The next generation Spotify Web API wrapper for Python 3.7+
- Host: GitHub
- URL: https://github.com/CyanBook/spotipy2
- Owner: CyanBook
- License: lgpl-3.0
- Created: 2020-11-26T21:31:47.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-06-14T17:55:00.000Z (over 1 year ago)
- Last Synced: 2024-11-09T00:52:50.680Z (5 days ago)
- Topics: spotify, spotify-api, spotify-library, spotify-web-api, spotipy
- Language: Python
- Homepage:
- Size: 139 KB
- Stars: 43
- Watchers: 6
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
The next generation Spotify Web API wrapper for Python
Documentation
•
Releases
•
Community
### Quick example
```python
import asyncio
from spotipy2 import Spotify
from spotipy2.auth import ClientCredentialsFlowasync 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`](https://github.com/aio-libs/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
```bash
pip install spotipy2
```## Resources
- Check out the docs at https://spotipy2.org to learn about Spotipy2.
- For any issue, open one [here](https://github.com/CyanBook/spotipy2/issues) or contact me privately via [Telegram](https://t.me/CyanBook).
- If you have anything else to ask, feel free to open a [discussion](https://github.com/CyanBook/spotipy2/discussions)