Skip to main content

Odesli API Python wrapper

Project description

python-odesli

Odesli/Songlink API wrapper for python.

Currently using version v1-alpha.1 of the Odesli API.

Installation

pip install odesli

From source

Install the PyPI package build:

pip install build

Then (from the root of the repo):

pip install dist/*.whl

Usage

Convert Spotify link to Tidal and Youtube Music links:

from odesli.Odesli import Odesli

odesli = Odesli()
result = odesli.getByUrl('https://open.spotify.com/track/1jJci4qxiYcOHhQR247rEU')

print(result.songsByProvider['tidal'].linksByPlatform['tidal'])
print(result.songsByProvider['youtube'].linksByPlatform['youtubeMusic'])
class diagram

For more information refer to the official Odesli API documentation.

Projects using this wrapper

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

odesli-0.0.2.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

odesli-0.0.2-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

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