Skip to main content

A library for parsing .lrc files

Project description

https://img.shields.io/pypi/v/pylrc.svg https://img.shields.io/pypi/dm/pylrc.svg https://img.shields.io/github/license/doakey3/pylrc.svg

A python library for parsing and converting .lrc files

Usage

import pylrc

lrc_file = open('example.lrc')
lrc_string = ''.join(lrc_file.readlines())
lrc_file.close()

subs = pylrc.parse(lrc_string)
for sub in subs:
    sub.shift(minutes=1, seconds=13, milliseconds=325) # offset by 01:13.325

srt = subs.toSRT() # convert lrc to srt string

lrc_string = subs.toLRC() # convert to lrc string

Installation

sudo pip install pylrc

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pylrc, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size pylrc-0.1.2.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page