Library to create and modify lrc files.
Project description
pyLRCtool
Library to create and modify lrc files.
Functionality
- parse lrc files and modify them
- export to srt file
- create new lrc files
Installation
git clone https://github.com/varyg1001/pylrctool
cd pylrctool
pip install .
Library usage
from pathlib import Path
import pendulum
from pylrctool import LRCFile, LRCEvent
lrc_file = LRCFile()
file = Path('test.lrc')
# Both statements below are equivalent
lrc_file.from_file(file)
lrc_file.from_string(file.read_text())
event = LRCEvent(
time=pendulum.duration(minutes=0, seconds=29, milliseconds=130),
data="And I ain't gon' kill my vibe",
)
lrc_file.add(event)
title = LRCEvent(data="Don't Be Afraid", type=LRCEvent.Type.Title)
lrc_file.add(title)
# saved to out.lrc
output = Path('out.lrc')
srt.dump(output)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pylrctool-0.1.0.tar.gz
(17.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pylrctool-0.1.0-py3-none-any.whl
(18.6 kB
view details)
File details
Details for the file pylrctool-0.1.0.tar.gz.
File metadata
- Download URL: pylrctool-0.1.0.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce81d431c8995ba4e1c5624d75ea2b76134791553230a0cd852a05fdbd35ed3a
|
|
| MD5 |
f75d6defedc74033df072fa88710ec3b
|
|
| BLAKE2b-256 |
53747153f1be9231c1b5ddb4e94ca855d506e419277d235c49662476c09e4ac3
|
File details
Details for the file pylrctool-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pylrctool-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa1059bdcbd20ab8076efd0c40a43a2e383646ac79e9e2825d42f091833de6ad
|
|
| MD5 |
450881742da232fc767f1b822322ab3e
|
|
| BLAKE2b-256 |
806f6876c45e966847282d217ec9fb2befda78278cb488a7104a7502427ed9e2
|