Skip to main content

CircleCI Build Status Pypi Chat with me on irc

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.

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)

Source distribution for chartlyrics 0.1.7
File Size Uploaded
chartlyrics-0.1.7.tar.gz 4.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chartlyrics 0.1.7
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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