Skip to main content

fetch_lyrics CLI Function

Custom command-line interface, based on the lyricgenius* Genius API implementation. Command line flags can be used to automatically copy the found lyrics to the MacOS* clipboard, and to store the found lyrics as .txt files in a (configurable) directory.


Installation and First Use

pip install lyrics-fetcher

For this software to work, a Genius API token is required. These (free) tokens can be found on the Genius developers website. More information about the Genius API can be found in the Genius API documentation. See the Usage section for information on how to set a token.


Usage

Fetching Lyrics

fetch_lyrics -[pc] "Queen" "Bohemian Rhapsody"

the -p flag enables saving of lyrics to a .txt file. By default, this is the current directory from which the command is run. To change the output directory, see the changing settings section.

the -c flag enables copying of the found lyrics to the MacOS* clipboard. This could be useful for manually adding lyrics to ID3 tags.

--settings, --help and --version can also be called for their basic functionality.

Changing Settings

before the first use, the token should be set. This token will be locally stored (unencrypted). To set the token, use the following command:

fetch_lyrics set token "TOKEN"

where TOKEN is replaced with the token obtained from the Genius developers webpage.

A custom output directory for the output of found lyrics into .txt files can be set using:

fetch_lyrics set outdir "desired/output/directory"

Settings are locally stored in .settings files. Note that these are unencrypted, but are never shared or moved.


Use Policy

This software is licensed using GNU GPLv3.


Disclaimer and Notes

*) Note that compatibility of different dependencies and OS' is not (yet) investigated.

  • I am open to improvements/pull requests, but may not have much time to look into them.

  • Currently only supports UTF-8 character encoding.

Metadata

Release files for lyrics-fetcher 0.2.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 lyrics-fetcher 0.2.2
File Size Uploaded Provenance Actions
lyrics-fetcher-0.2.2.tar.gz 23.8 kB Without provenance Details for lyrics-fetcher-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lyrics-fetcher 0.2.2
File Interpreter ABI Platform Actions
lyrics_fetcher-0.2.2-py3-none-any.whl Python 3 none any Details for lyrics_fetcher-0.2.2-py3-none-any.whl

Total release size: 48.5 kB

Release files / lyrics-fetcher-0.2.2.tar.gz

Download URL lyrics-fetcher-0.2.2.tar.gz
Size 23.8 kB
Tags Source
SHA-256 checksum
How to use checksums
97efe09a593a595cafacb4592cd3522a55698e603a11daa2789f79c21c690293
BLAKE2b-256 checksum
How to use checksums
35303604ec75016aa863f0a8e575a8a2ae2e953dab3ae5ff86fd4af468f63caa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1

Release files / lyrics_fetcher-0.2.2-py3-none-any.whl

Download URL lyrics_fetcher-0.2.2-py3-none-any.whl
Size 24.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
521e4a3ac174d4f3aba91d7e6557eb5f44a88bd40c5151ee6f3d00d90b61e11c
BLAKE2b-256 checksum
How to use checksums
b734a2f110bbcf0fea235e9a6f04ed2e38b59087824151de95a9a4076ecf239a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.1

Security for lyrics-fetcher 0.2.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