an API wrapper for Spotify
Project description
Aiospotipy
aiospotipy is an API wrapper for Spotify written in python.
This is based on asyncio and spotipy.
Installing
This package can be installed in pip
:
pip install aiospotipy
Of course, you can install the package manually after cloning the repository:
git clone https://github.com/sizumita/aiospotipy.git
cd aiospotipy
python setup.py install
Quick Example
from aiospotipy import Spotify
auth = "xxxxxxxxxxxxxx"
spotify = Spotify(auth=auth)
# Search for an artist by its name
search_results = await spotify.search_artist(q="kalafina")
from aiospotipy import Spotify
from aiospotipy.oauth2 import SpotifyCredentials
spotify = Spotify(SpotifyCredentials("CLIENT_ID", "CLIENT_SECRET"))
# Search for an track by its id
search_results = await spotify.search(q='3n3Ppam7vgaVa1iaRUc9Lp', _type='track')
# Show my playlists:
my_playlists = await spotify.me.playlists()
License
This project is licensed under the MIT Licence.
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
aiospotipy-0.0.2.tar.gz
(10.1 kB
view details)
Built Distribution
File details
Details for the file aiospotipy-0.0.2.tar.gz
.
File metadata
- Download URL: aiospotipy-0.0.2.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e9fa4a38f3076a6a5e4f2c44f2b16ed0e7111cf36405953f5c6f5cef6588873 |
|
MD5 | 6c147c9c2ed0245cba946a4a2fdbcf54 |
|
BLAKE2b-256 | f23463a65bb1cf22c9af01b80f962e0e36fa307ecdee49f730f8884377d861da |
File details
Details for the file aiospotipy-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: aiospotipy-0.0.2-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da5165221e4d4fa1a270b416f16460754b3bc3b9be86bd0d6ceabb716d299f87 |
|
MD5 | 805c1a263b45e7cd194cc08cee85191f |
|
BLAKE2b-256 | 5988bd41d3677b2b3c4cf14d8e16140e94593175f48c9b16abc35c806aaa3208 |