An open API service indexing awesome lists of open source software.

https://github.com/fabian-thomas/python-odesli

Odesli/Songlink API wrapper for python.
https://github.com/fabian-thomas/python-odesli

api odesli songlink

Last synced: 5 months ago
JSON representation

Odesli/Songlink API wrapper for python.

Awesome Lists containing this project

README

          

# python-odesli

Odesli/Songlink API wrapper for python.

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

## Installation

```bash
pip install odesli
```

### From source

Install the PyPI package `build`:
```bash
pip install build
```

Then (from the root of the repo):
```bash
python -m build
pip install dist/*.whl
```

## Usage

Convert Spotify link to Tidal and Youtube Music links:
```python
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](https://www.notion.so/API-d0ebe08a5e304a55928405eb682f6741).

## Projects using this wrapper

- [odesli-cli](https://github.com/fabian-thomas/odesli-cli)