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.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.1.2-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: soundchartspy-0.1.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.1.2.tar.gz
Algorithm Hash digest
SHA256 b119cb9fdc5b6e48d167c5c030ce5f091b9b23a13276db99175aa5e6cbefe8c1
MD5 eda4743d66b3652f0853f1149f62e7eb
BLAKE2b-256 122f1b7c0afc517b040885e457bcc1d302b89dc21b6031d5caf11fef8664f5ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: soundchartspy-0.1.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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a89346e99b9e17fb8929ea7198823a1ac7a79ef8b3824755c047143d6af67a97
MD5 f02d019905e4cdc8819815e6654bc287
BLAKE2b-256 ad9a6e322d8155948080f17c093e2e581628da9a90b945736988000808fbc10f

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