Skip to content

kaitaiStructCompile/kaitaiStructCompile.importer

Repository files navigation

kaitaiStructCompile.importer Unlicensed work

wheel PyPi Status GitLab build status Coveralls Coverage GitLab coverage Libraries.io Status

This is an importer allowing to import ksys. Seamlessly compiles ksys into python sources. Useful for playing in IPython shell.

Usage

import kaitaiStructCompile.importer
kaitaiStructCompile.importer._importer.searchDirs.append(Path("./dirWithKSYFiles")) # you can add a dir to search for KSY files.
kaitaiStructCompile.importer._importer.flags["readStoresPos"]=True # you can set compiler flags, for more details see the JSON schema
from kaitaiStructCompile.importer.test import Test
Test # kaitaiStructCompile.importer.test.Test