Skip to main content
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

Download files

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

Source Distribution

pylrc-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file pylrc-0.1.1.tar.gz.

File metadata

  • Download URL: pylrc-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.8

File hashes

Hashes for pylrc-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6eb742b732a14987d82f1770c3d276659c8fadab0a23daa93a0540ea49fd73fd
MD5 e9000a6865a0c4436e9a11093190999f
BLAKE2b-256 2a9886dde7632b127a8d90fbefeb38a5d93aedb8fc941971418fd7842965d375

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page