Skip to content

Dr-Blank/lrctoolbox

Repository files navigation

LRC Toolbox

Stable Version Downloads Test Documentation Status Code style: black Checked with mypy

Toolkit to work with LRC Files in Python

Usage

from lrctoolbox import SyncedLyrics

# Load LRC file
lyrics = SyncedLyrics.load_from_file("example.lrc")

# check if lyrics are synced
assert lyrics.is_synced

# get lyrics as string
print(lyrics.lyrics)

# shift lyrics by 1 second
for line in lyrics.lines:
    line.timestamp += 1000

Development

poetry is used for dependency management. Install it with pip install poetry and then run poetry install to install all dependencies.