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.1.3.tar.gz (44.0 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.1.3-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for soundchartspy-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c0481333fb805873cef1c555f6ac6bf356660f5b4dc3ce6369f252b3f5048671
MD5 7ffebbe8f100804e89e61ecdfef8ea7a
BLAKE2b-256 d0f9aee4dbf3856b5fbe9227a0dbb6c443e4086e9739e8aeabedd5d2dec662ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: soundchartspy-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 10.2 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.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6581a5412d80e130748623ca2d5c254e21ca1fca50ffda82e8313c935c649861
MD5 8056422a0755a643912817a62b13b4fa
BLAKE2b-256 233e15fefacd406efc58fb418c247f420dd1d982adca8883f61a4ae92de9a200

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