generalmimon / ks-table-py-benchmark

Kaitai Struct table format Python parsing benchmark

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kaitai Struct table format Python parsing benchmark

REUSE compliant

See https://gitter.im/kaitai_struct/Lobby?at=6058ce092beb1e1da3c30cfa

Install Kaitai Struct runtime library for Python:

python3 -m pip install kaitaistruct

Generate test file sample.bin:

python3 ./generate_sample.py

Generate Python parsing code from .ksy files:

kaitai-struct-compiler -- --verbose file -d compiled -t python *.ksy

Run the benchmark:

python3 ./index.py

Maintenance

Licensing

Note: requires https://github.com/fsfe/reuse-tool/. If reuse --version is not working for you, get the tool by following the steps on https://github.com/fsfe/reuse-tool#install.

Check for license/copyright issues:

reuse lint

Add comment headers with copyright and licensing information:

shopt -s globstar
reuse addheader --copyright="Petr Pucil <petr.pucil@seznam.cz>" --license="CC0-1.0" **/.gitignore README.md .github/workflows/reuse-lint.yml
reuse addheader --copyright="Petr Pucil <petr.pucil@seznam.cz>" --license="MIT" --style=python **/*.py **/*.ksy .github/workflows/main.yml

About

Kaitai Struct table format Python parsing benchmark


Languages

Language:Python 70.6%Language:Kaitai Struct 29.4%