Skip to main content

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

  1. Clone or sync the upstream spec tree (for example vendor/bioware-kaitai-formats with all .ksy files).
  2. Install a Kaitai Struct compiler (0.11.x matches this tree).
  3. Run:
uv run python scripts/regenerate_python.py --ksy-root PATH_TO_KSY_DIR

Optional:

  • --ksc — path to kaitai-struct-compiler (or .bat on Windows); otherwise kaitai-struct-compiler must be on PATH.
  • --repo-root — root of this package (defaults to the directory containing pyproject.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bioware_kaitai_formats-0.1.0.tar.gz (58.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bioware_kaitai_formats-0.1.0-py3-none-any.whl (85.2 kB view details)

Uploaded Python 3

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

Hashes for bioware_kaitai_formats-0.1.0.tar.gz
Algorithm Hash digest
SHA256 62a34a82cee045ae28de8b89a97e1af6241e3cd974baac3ae5b9779055d391e2
MD5 0b04cd91004f7a15aba9ff5f10cf603f
BLAKE2b-256 4f11f3e784ab4f30f5925c832420d4f39fddbc35e935e113bc3e98ad57eb793a

See more details on using hashes here.

File details

Details for the file bioware_kaitai_formats-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bioware_kaitai_formats-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae3516c608b43a6211c881530af1ce9c1e58fa7c5e77829670a8ddf131ba1d33
MD5 18b12051a002b3af952c37319627b4f3
BLAKE2b-256 df0189b36660e05a9b35274f8b46780e62b8c6b12c19100e68f387931ac213ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page