kaitai_struct_python_runtime
kaitai_struct_python_runtime copied to clipboard
Kaitai Struct: runtime for Python
started using memory-mapping files and added `from_any` method
I've just noticed that https://pypi.org/project/kaitaistruct/ doesn't contain any backlink to the source repository, i.e. https://github.com/kaitai-io/kaitai_struct_python_runtime. The "Homepage" in Project links leads to https://kaitai.io:  ..., which I guess is fine...
This is something that I haven't fully thought out yet, but which might be useful in certain cases, such as when `io` is shared between elements (so when no new...
Currently, when a Kaitai Struct parser detects that the input data is invalid, it can raise a variety of exceptions: `ValueError`, `EOFError`, generic `Exception`, and possibly some others. This makes...
Python's `struct` module seems to be pretty inefficient for our purposes. Namely, in all APIs it provides, it requires passing a format string into `unpack`-like function, which then parses that...
It looks like currently the [PyPI kaitaistruct package](https://pypi.org/project/kaitaistruct/) only [contains](https://pypi.org/project/kaitaistruct/0.9/#files) a source tarball distribution, but not a prebuilt wheel distribution. Wheels are Python's format for built packages, and their advantage...
I could not find any docs on Python API. Are there any helpful methods beyond mere field accessors? For example, I need: 1. Get the size of a substructure 2....
http://doc.kaitai.io/lang_python.html doesn't specify how exactly to import .ksy files from Python. I would expect something like this. ```python import kaitai Gif = kaitai.compile('git.ksy') g = Gif.from_file('some.gif') ``` If I understand...