Kaitai Struct generated Python parsers for BioWare and KotOR wire formats.
Project description
bioware-kaitai-formats
Installable Python package containing Kaitai Struct–generated parsers for BioWare / KotOR binary and text-derived formats.
Canonical .ksy specifications live in the upstream repository: OldRepublicDevs/bioware-kaitai-formats. This PyKotor workspace copy vendors the generated Python under src/bioware_kaitai_formats/ so consumers (PyKotor, KotorBlender, etc.) depend on this package instead of copying parsers into each project.
Install
From the PyKotor monorepo (workspace):
uv sync --all-packages --all-extras
From PyPI (once published):
pip install bioware-kaitai-formats
Regenerating Python from .ksy
- Clone or sync the upstream spec tree (for example
vendor/bioware-kaitai-formatswith all.ksyfiles). - Install a Kaitai Struct compiler (0.11.x matches this tree).
- Run:
uv run python scripts/regenerate_python.py --ksy-root PATH_TO_KSY_DIR
Optional:
--ksc— path tokaitai-struct-compiler(or.baton Windows); otherwisekaitai-struct-compilermust be onPATH.--repo-root— root of this package (defaults to the directory containingpyproject.toml).
The script compiles into src/bioware_kaitai_formats/, then runs post-processing (relative imports, URL scrub) so the tree matches packaging expectations.
Versioning
Keep this package version aligned with PyKotor releases when wire layouts change. Patch bumps for regenerated-only updates; minor bumps when new specs are added.
Publishing to PyPI
Before uploading a new pykotor release that lists bioware-kaitai-formats>=0.1.0, publish this package (same version or compatible range) to PyPI so plain pip install pykotor resolves the dependency. Monorepo consumers continue to use the workspace member via uv sync.
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
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
File details
Details for the file bioware_kaitai_formats-0.1.0.tar.gz.
File metadata
- Download URL: bioware_kaitai_formats-0.1.0.tar.gz
- Upload date:
- Size: 58.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62a34a82cee045ae28de8b89a97e1af6241e3cd974baac3ae5b9779055d391e2
|
|
| MD5 |
0b04cd91004f7a15aba9ff5f10cf603f
|
|
| BLAKE2b-256 |
4f11f3e784ab4f30f5925c832420d4f39fddbc35e935e113bc3e98ad57eb793a
|
File details
Details for the file bioware_kaitai_formats-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bioware_kaitai_formats-0.1.0-py3-none-any.whl
- Upload date:
- Size: 85.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae3516c608b43a6211c881530af1ce9c1e58fa7c5e77829670a8ddf131ba1d33
|
|
| MD5 |
18b12051a002b3af952c37319627b4f3
|
|
| BLAKE2b-256 |
df0189b36660e05a9b35274f8b46780e62b8c6b12c19100e68f387931ac213ce
|