Klarfrs is a parser written in Rust to read klarf files as a python dictionary. Currently it only supports version 1.2.
Use the package manager pip to install klarfrs.
pip install klarfrs
import klarfrs
filename: str = "klarf.001" #
klarf_header: dict = klarfrs.parse(filename)
klarf_defects: dict = klarfrs.parse_defects(filename)
print(klarf_header)
print(klarf_defects)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.