semvec/pypi-packages huggingface dataset:
arc-lib-arodroz 0.0.3
Text tools
Requires Python: >=3.6

# strcpy
Python function allowing to copy a text in another one in a mutable way. That is regardless of whether the latter has enough space to accommodate the former.
## Usage
```python

    from arc_lib.text import strcpy

    text1 = "Hello"

    text2 = strcpy(text1, "world!", 6)
    
    print(text2)
```    
```console
    Hello world!
```    
```python
    text2 = strcpy(text1, "world!", 20)
    
    print(text2)
```    
```console
    Hello               world!
```    
```python
    text2 = strcpy(text1, "world!", 2)
    
    print(text2)
```    
```console
    Heworld!
```
## Installation
Install this through pip:
```shell
pip install arc_lib
```
odesli-cli 0.0.3
CLI client for the Odesli/Songlink API.
Requires Python: >=3.6

# odesli-cli

CLI client for the Odesli/Songlink API.

## Installation

```bash
pip install odesli-cli
```

### From source

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

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

## Sample usages:

### Get information on a song by it's url
```bash
odesli-cli '{URL}' all
```

### Convert current Spotify track to Tidal link and copy it to the X clipboard (Linux only)
```bash
current_spotify="$(qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep xesam:url |  awk '{print $2}')"
odesli-cli "$current_spotify" --provider tidal link | xclip -selection clipboard
```

### Open Tidal, Spotify, Deezer, etc. links directly in the Spotify app (The coolest one, Linux only)
For this functionality one needs to hack a bit more. I have it all set up with my Linux dofiles, so trust me, it works.
Just some key points to make it work:
- Create a shell script that can handle all sorts of http(s) links and set it as the mime default.
- Match Tidal, etc. links, convert them with this tool and play them with `qdbus org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.OpenUri "{URI}"`.
- Match Spotify links and play them directly with above command (note that you need to convert the url to a uri in both cases).

If you need additional information don't hesitate to contact me via mail. I haven't tried the dbus command for playing with the Tidal or Deezer apps, but it may work for them in the same fashion.