A python wrapper package for the paid api from soundcharts. This package is not affiliated with soundcharts and is not endorsed by them. However, it is built upon their api and can be used assuming you have a paid subscription to their service.
Project description
Sounchartspy
A python wrapper for the Soundcharts API.
Installation
pip install soundchartspy
Example Usage
from soundchartspy.client import SoundCharts
from soundchartspy.data import Song, Album
# Initialize the SoundCharts client
sc = SoundCharts(api_key='your_api_key', app_id='your_app_id')
# Get the song by uuid
song: Song = sc.song(song_uuid='7d534228-5165-11e9-9375-549f35161576')
print("Song Name: {}, Artists: {}".format(song.name, song.artists))
# Get the song audience on spotify.
audience_data: dict = sc.song_audience(song.uuid, 'spotify')
print("Spotify Audience: {}".format(audience_data))
# Get the song albums
albums: list[Album] = sc.song_albums(song.uuid)
print("Albums: {}".format(albums))
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
soundchartspy-0.1.1.tar.gz
(6.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file soundchartspy-0.1.1.tar.gz.
File metadata
- Download URL: soundchartspy-0.1.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
519cba3de3464c73b948acff39e0d406c56ffce599374f283fed5703358db17b
|
|
| MD5 |
079f673df881a62e1d093807bf8250d3
|
|
| BLAKE2b-256 |
5bfa5b79e2458efc65003c81b9931818828dc6570fb0033c1986dc933fea18e7
|
File details
Details for the file soundchartspy-0.1.1-py3-none-any.whl.
File metadata
- Download URL: soundchartspy-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e064e24e04c043822d119f23849012f3d15be3419c3649cbc4b4e08957e3ee7
|
|
| MD5 |
80d78b29aa3dae59b0ac79e9d89dbed3
|
|
| BLAKE2b-256 |
89efed8c9561e19ba3a34f8b72fe2c6adc6e5aa4e88f2ebb91284821646463a2
|