Skip to main content

PyLyr

Get lyrics of a song playing through mpd via api requests and webscraping

  • Lyrics are cached in ~/.lyrics/ to avoid repeated requests for the same song
    • A nice corollary is that song titles can be determined with a grep command:
      grep -ri 'lyric string' ~/.lyrics
      

Usage

Run pylyr -h to see an overview of command flags

  • Output is to stdout by default to allow for easy manipulation

Examples

Downloading lyrics for all of a specific artist's songs:

ARTIST="<artist>"
mpc -f 'pylyr -v -t "%title%" -a "%artist%"' search artist "$ARTIST" \
| while read line
do
    sh -c "$line"
done

Downloading lyrics for your entire library:

mpc -f 'if \[ ! -f ~/.lyrics/"%artist% - %title%.txt" \]; \
then pylyr -v -t "%title%" -a "%artist%"; fi' listall | while read line
do
    sh -c "$line"
done

Metadata

Release files for pylyr 1.0.2

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

Source distribution (sdist)

Source distribution for pylyr 1.0.2
File Size Uploaded Provenance Actions
pylyr-1.0.2.tar.gz 43.8 kB Without provenance Details for pylyr-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pylyr 1.0.2
File Interpreter ABI Platform Actions
pylyr-1.0.2-py3-none-any.whl Python 3 none any Details for pylyr-1.0.2-py3-none-any.whl

Total release size: 74.8 kB

Release files / pylyr-1.0.2.tar.gz

Download URL pylyr-1.0.2.tar.gz
Size 43.8 kB
Tags Source
SHA-256 checksum
How to use checksums
eac702235a3768289248d899db83d4bc586789ef913e4fce163f0731bc068105
BLAKE2b-256 checksum
How to use checksums
01e4aefbbcd8a8689e846222eb5f544da1688321cee5cdabf5670ae5b49de7f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / pylyr-1.0.2-py3-none-any.whl

Download URL pylyr-1.0.2-py3-none-any.whl
Size 31.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
013c8979c15cb7272255f6dbc8d6ce81eab4aada22eb9bf5f7bfe985ff49d225
BLAKE2b-256 checksum
How to use checksums
bc9e639d57213676219adb1a6b817e0c539ebe01fed1f0209f4c2fda3da103d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for pylyr 1.0.2

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