ChartLyrics API
This is a simple wrapper for: http://api.chartlyrics.com. You can search for songs, artists and get the lyrics.
Installation
pip install chartlyrics
Usage Example
from chartlyrics import ChartLyricsClient
client = ChartLyricsClient()
for song in client.search_text("starts with one"):
if "park" in song.artist.lower():
print(song.artist) # Linking Park
print(song.lyrics) # Starts with one\n One thing I dont know why...
You can also use song.lyrics_object which will return a Lyrics object that you can index strophes and verses on:
lyrics = song.lyrics_object
print(lyrics[0][-1]) # first strophe last verse
Check the tests for more examples.
Development
Fork the repo, run:
poetry install
Add features, write tests, run:
poetry run pytest
Create a Pull request.
Metadata
Release files for chartlyrics 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| chartlyrics-0.1.7.tar.gz | 4.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chartlyrics-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / chartlyrics-0.1.7.tar.gz
| Download URL | chartlyrics-0.1.7.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab23840a2182ed3f6d1bc552c5f100acb133d4cfcf975decfd6fb55bd303d5ee
|
|
BLAKE2b-256 checksum How to use checksums |
fe6329958e67265bcfbb464cb62db4fb57591ed5deeaed3a0a12c747e87ba39f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.10.15 Linux/5.15.0-1057-aws
|
Release files / chartlyrics-0.1.7-py3-none-any.whl
| Download URL | chartlyrics-0.1.7-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0604add10cb1057ac3bfc57dd4ea6e9893f157041beb862ce7e118ca49b24182
|
|
BLAKE2b-256 checksum How to use checksums |
191e3146d474eb511300f8b38bb1be11f175a6fea0a2afa8ca28c6be5361c194
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.10.15 Linux/5.15.0-1057-aws
|
Security for chartlyrics 0.1.7
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.