Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/generalmimon/ks-table-py-benchmark
Kaitai Struct table format Python parsing benchmark
https://github.com/generalmimon/ks-table-py-benchmark
benchmark kaitai-struct parsing python
Last synced: 4 days ago
JSON representation
Kaitai Struct table format Python parsing benchmark
- Host: GitHub
- URL: https://github.com/generalmimon/ks-table-py-benchmark
- Owner: generalmimon
- Created: 2021-03-22T20:32:05.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-17T09:41:29.000Z (over 3 years ago)
- Last Synced: 2024-11-08T05:41:41.463Z (about 2 months ago)
- Topics: benchmark, kaitai-struct, parsing, python
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSES/CC0-1.0.txt
Awesome Lists containing this project
README
# Kaitai Struct table format Python parsing benchmark
[![REUSE compliant](https://github.com/generalmimon/ks-table-py-benchmark/actions/workflows/reuse-lint.yml/badge.svg)](
https://github.com/generalmimon/ks-table-py-benchmark/actions/workflows/reuse-lint.yml
)See https://gitter.im/kaitai_struct/Lobby?at=6058ce092beb1e1da3c30cfa
Install Kaitai Struct runtime library for Python:
```shell
python3 -m pip install kaitaistruct
```Generate test file `sample.bin`:
```shell
python3 ./generate_sample.py
```Generate Python parsing code from `.ksy` files:
```shell
kaitai-struct-compiler -- --verbose file -d compiled -t python *.ksy
```Run the benchmark:
```shell
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:
```shell
reuse lint
```Add comment headers with copyright and licensing information:
```shell
shopt -s globstar
reuse addheader --copyright="Petr Pucil " --license="CC0-1.0" **/.gitignore README.md .github/workflows/reuse-lint.yml
reuse addheader --copyright="Petr Pucil " --license="MIT" --style=python **/*.py **/*.ksy .github/workflows/main.yml
```