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

Soundchartspy PyPI Version PyPI Downloads Build Status

Installation

To install from PyPI, simply run:

pip install soundchartspy

If you’d like to install the latest development version from source:

pip install -e 'git+https://github.com/AidanAlr/soundchartspy.git#egg=soundchartspy'

Make sure to you have contacted SoundCharts and have purchased a plan providing the required app id and api key.

About

soundchartspy is a wrapper package enabling easier pythonic interaction with the SoundCharts API (SoundCharts API documentation). It provides an easy interface to retrieve data about songs, artists, charts and more. This package is not affiliated with or endorsed by SoundCharts, though an active SoundCharts API subscription is required to use the package.

For detailed information, consult the documentation hosted on Read the Docs.

Documentation

Documentation for soundchartspy is located at https://soundchartspy.readthedocs.io/.

Example Usage

Here’s an example of how to use soundchartspy:

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))

Found a Bug?

Issues are tracked via GitHub at the project issue page.

Contributing

  1. Check for open issues on the project issue page, or open a new issue to start a discussion about a feature or bug.

  2. Fork the soundchartspy repository on GitHub to start making changes.

  3. Add a test case to ensure that the bug is fixed or the feature is implemented correctly.

  4. Submit your pull request for review.

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.2.tar.gz (43.6 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.2-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: soundchartspy-0.0.2.tar.gz
  • Upload date:
  • Size: 43.6 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.2.tar.gz
Algorithm Hash digest
SHA256 2690d442fe5da7f2ff40fcb752419e235a55f840fcc931304971645f0e4b101d
MD5 67508f023536ab02e8d5c67798667547
BLAKE2b-256 a22b56ff7b51824ccf5a5e6a200c5c723b590f7aa2e0aeaa4c1ba58041374d45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: soundchartspy-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ba501c02c12523741c3b891763b1ca6a39ba32230c72a3ed0361f05a2a92dd5c
MD5 2bf01fee3a89462a740c4bca84b5d243
BLAKE2b-256 00d271a63bb05adff6d5636011a0ffea05d6ec915e399529d999e664b35c9d16

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