A package for searching and converting music links across different music streaming services.
Project description
LinkTune
LinkTune is a Python command line tool that allows users to convert music links between music streaming services and perform simple song searches across these platforms. Created to facilitate easy music sharing between people using different music services.
Supported services
LinkTune currently supports these music services:
- Spotify
- Apple Music
- YouTube Music
- Tidal
- Deezer
Usage
LinkTune provides two commands: convert and search.
convert
The convert command allows you to convert a music link from one streaming service to another.
Syntax:
linktune convert <source_url> <destination_service>
where <source_url> is the link to be converted and <destination_service> is the streaming service you'd like to generate the link for.
For example, to convert a Spotify link to a Tidal link:
linktune convert https://open.spotify.com/track/3pUlXJnQx66IitZVn8Lcki tidal
Will return:
info: Diazepam by Ren, url: http://www.tidal.com/track/176483583
search
The search command allows you to search for a track across multiple music services.
Syntax:
linktune search --artist <artist> --title <title> --service <service>
or use shorthand options, e.g.:
linktune search -a ren -t diazepam -s apple
Diazepam by Ren: https://music.apple.com/us/album/diazepam/1652019136?i=1652019316&uo=4
Omitting --service will return the track on all services.
Installation
pip install linktune
Get a Spotify API key
This app uses the Spotify API, which requires the use of a Spotify client ID and client secret to authenticate API requests. You can generate these for free by creating a Spotify account and navigating to https://developer.spotify.com/dashboard/applications.
You can then set your local environment variables for SPOTIPY_CLIENT_ID and SPOTIPY_CLIENT_SECRET as follows:
export SPOTIPY_CLIENT_ID=<your_client_id>
export SPOTIPY_CLIENT_SECRET=<your_client_secret>
These environment variables will be read from config.py.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file linktune-0.1.3.tar.gz.
File metadata
- Download URL: linktune-0.1.3.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4560db9cea92964e49c96449b5f79fd7919d921e6f2da742bf021dad6a6df1cf
|
|
| MD5 |
5d9eaed6346103159ddead2b717f7e27
|
|
| BLAKE2b-256 |
acebaa95c2b3671a1f699f7af30f8bfef662f5e3848b7527cbd3f27193d5e5b3
|
File details
Details for the file linktune-0.1.3-py3-none-any.whl.
File metadata
- Download URL: linktune-0.1.3-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3f7d90ea298af23ec1d88b651c08fce0300dff1a4495cb92b38a9fac0fe67a1
|
|
| MD5 |
be74df7a80786258950d284815f5685e
|
|
| BLAKE2b-256 |
420e70e7a58ad1ca92e3486f0fe1bb61b89e715758e5a679c8fd1efbc8189bf3
|