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.

Source Distribution

pylrc-0.1.2.tar.gz (3.9 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pylrc-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b9d6a07b7d211f71299b3faea5a1ca64c2fc45e3d704227c07ccdb0cc09386d1
MD5 0266cfd5fbfba59399ec89a167f02adf
BLAKE2b-256 0911eff2a73a32b204ab040811f5a966f9342960f8c889af2bb20e544640b630

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page