tlk-parser
Python library for reading, transforming, and writing BioWare TLK V1 dialogue files (used in games such as Baldurs Gate 2).
Install
pip install tlk-parser
For local development:
git clone https://github.com/mldelaney94/tlk_v1_parser.git
cd tlk_v1_parser
./setup_venv.sh
source ./activate_venv.sh
Usage
from tlk_parser import Tlk
tlk = Tlk("dialog.tlk")
# Inspect strings
for rep in tlk.string_reps:
print(rep.str_string)
# Transform strings without mutating the original
translated = tlk.map_strings(lambda s: s.upper())
translated.save_tlk("dialog_upper.tlk")
Metadata
Release files for tlk-parser 1.0.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 | |
|---|---|---|---|
| tlk_parser-1.0.0.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tlk_parser-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / tlk_parser-1.0.0.tar.gz
| Download URL | tlk_parser-1.0.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e87749d74337f43044221fbcd8af1296e20a27b382b27842c20f9afdcab458d
|
|
BLAKE2b-256 checksum How to use checksums |
a91214b6bae5409e53e0e2b6f296921cc504c43728dd83ae20253823dfae8156
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / tlk_parser-1.0.0-py3-none-any.whl
| Download URL | tlk_parser-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63be5cfa1b09f839843ce90621b0c7bde3bb442e69e411ea5edf4f70d78ced69
|
|
BLAKE2b-256 checksum How to use checksums |
0f54e8b76509e3d150c24b1b4f3137ca949c2e69a33509fb4fe3a380290ef8eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|