Skip to main content

odesli-cli

CLI client for the Odesli/Songlink API.

Installation

pip install odesli-cli

From source

Install the PyPI package build:

pip install build

Then (from the root of the repo):

pip install dist/*.whl

Sample usages:

Get information on a song by it's url

odesli-cli '{URL}' all
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

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.

Metadata

Release files for odesli-cli 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for odesli-cli 0.0.3
File Size Uploaded Provenance Actions
odesli-cli-0.0.3.tar.gz 3.8 kB Without provenance Details for odesli-cli-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for odesli-cli 0.0.3
File Interpreter ABI Platform Actions
odesli_cli-0.0.3-py3-none-any.whl Python 3 none any Details for odesli_cli-0.0.3-py3-none-any.whl

Total release size: 8.1 kB

Release files / odesli-cli-0.0.3.tar.gz

Download URL odesli-cli-0.0.3.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
90aa761f82eb8eb0226c7193d56413902c8290d508ab46355a57e0d6cc77631c
BLAKE2b-256 checksum
How to use checksums
feb8392fb7c6775d4f49a44319d50502d98c77bc44961e505fcb8d3829d0eab4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

Release files / odesli_cli-0.0.3-py3-none-any.whl

Download URL odesli_cli-0.0.3-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9776161c2fb7c61eeb42abc71b73bbce0c2bb5d23881b0afe34b2e0024721143
BLAKE2b-256 checksum
How to use checksums
b1765c1387b778945105089302e625a151e90de9fad1fe7f7fcde1317cecbeae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

Security for odesli-cli 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page