Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 1.63 KB

README.md

File metadata and controls

55 lines (41 loc) · 1.63 KB

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.