Metadata-Version: 2.1
Name: linktune
Version: 0.1.2
Summary: A package for searching and converting music links across different music streaming services.
Author-email: fi <fiona.nugent7@gmail.com>
License: MIT License
        
        Copyright (c) 2023 fi
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/kattums/LinkTune
Project-URL: Bug Tracker, https://github.com/kattums/LinkTune/issues
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENCE

# 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`.
