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.1.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.1-py3-none-any.whl
(18.6 kB
view details)
File details
Details for the file pylrctool-0.1.1.tar.gz.
File metadata
- Download URL: pylrctool-0.1.1.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 |
0438453a37a73c570b010dcdc3a83f093df4f147ffbbb2f24695224d005ef406
|
|
| MD5 |
c9246cd18d2f62be7f3e22eb3307bebd
|
|
| BLAKE2b-256 |
b39ae8f1709ad3280270ee2ca801fffa7c8e7af1c0b78c8d8b9bc8e45682291a
|
File details
Details for the file pylrctool-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pylrctool-0.1.1-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 |
7782f491359c3518bc2ab923513101bdbe40968f95492e7f7d1bccf9dad70c8f
|
|
| MD5 |
60a05be13d62ea73691b763fa549a9bb
|
|
| BLAKE2b-256 |
ab939b051c51d8b3aa75349a6644fd54b6ece054f11784465bd917bdd3146af3
|