Skip to main content

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.0.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

soundchartspy-0.0.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file soundchartspy-0.0.1.tar.gz.

File metadata

  • Download URL: soundchartspy-0.0.1.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for soundchartspy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b8b7cec7ecebf1f654a2104e8b809cb3134a5ee847de7cf297c1a3ebd0307f19
MD5 fa1960cdb0d93df6ea7c5466200f93cf
BLAKE2b-256 2c72655b1047c8696fdb8de0c12a53ac09ba9ca33e2bc2653d7cdbbd46fd6dcf

See more details on using hashes here.

File details

Details for the file soundchartspy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: soundchartspy-0.0.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

Hashes for soundchartspy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf2d8f98fe84a3e7564b35aa094644bd923075136bbd9dbddd1d401b62e7c646
MD5 74b28c38b80b4515b0aa84d0df21bd16
BLAKE2b-256 c3e432d0040d0879e35d077868ee43318f011d8329b00964214df32a4c4d5d6c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page