pyLRCtool
Library to create and modify lrc files.
Functionality
- parse lrc files and modify them
- create new lrc files
- export to srt file
- import from srt file
- add delay
Installation
git clone https://github.com/varyg1001/pylrctool
cd pylrctool
pip install .
Library usage
from pathlib import Path
import pendulum
from pylrctool import LRCEvent, LRCFile
lrc_file = LRCFile()
file = Path('test.lrc')
file2 = Path('test.srt')
# Both statements below are equivalent
lrc_file.from_file(file)
lrc_file.from_string(file.read_text())
lrc_file.from_srt(file2)
# add new events
event = LRCEvent(
time=pendulum.duration(minutes=0, seconds=29, milliseconds=130),
data="And I ain't gon' kill my vibe",
)
lrc_file.add(event)
# other event types
title = LRCEvent(data="Don't Be Afraid", type=LRCEvent.Type.Title)
author = LRCEvent(data="Azahriah / BLANKS", type=LRCEvent.Type.Author)
length = LRCEvent(data="02:52", type=LRCEvent.Type.Length)
lrc_file.add(title)
lrc_file.add(author)
lrc_file.add(author)
# shift with 1 minute
lrc_file.shift(minutes=1)
# merge lines to create repeat ie. [00:35.06][00:36.06]Don't be afraid
lrc_file.merge_lines()
# saved to out.lrc
output = Path('out.lrc')
lrc_file.dump(output)
# saved to out.scr
output = Path('out.src')
lrc_file.dump_to_srt(output)
# dumps lyrics only
lrc_file.dumps(data_only=True)
Metadata
Release files for pylrctool 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pylrctool-0.2.0.tar.gz | 18.6 kB | Without provenance | Details for pylrctool-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pylrctool-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pylrctool-0.2.0-py3-none-any.whl |
Total release size: 37.6 kB
Release files / pylrctool-0.2.0.tar.gz
| Download URL | pylrctool-0.2.0.tar.gz |
|---|---|
| Size | 18.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd472efafc6af2a19a8ecd4a8c89ae8bec39611b0fe9b3fc7ec159e4d424a7c4
|
|
BLAKE2b-256 checksum How to use checksums |
39e9c190e63dc4bc5576fac8bd82ff8fcd46723d93d4d0a7a9c9e4b94e80e1c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.5
|
Release files / pylrctool-0.2.0-py3-none-any.whl
| Download URL | pylrctool-0.2.0-py3-none-any.whl |
|---|---|
| Size | 19.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1de172ae241c0cc2d72636387751970abd383379df7b6ba77b9b2a42ede789c4
|
|
BLAKE2b-256 checksum How to use checksums |
c6d08c291e1b1f9a119f3ab6e929dba43364d4a890c91170b2ac57e91d349b21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.5
|
Security for pylrctool 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.