Klarfrs is a parser written in Rust to read klarf files as a python dictionary. Currently it only supports version 1.2.
Project description
klarfrs
Klarfrs is a parser written in Rust to read klarf files into structured objects. It supports versions 1.2 and 1.8 (via dynamic column handling).
Installation
Use the package manager pip to install klarfrs.
pip install klarfrs
Usage
import klarfrs
from typing import List
filename: str = "klarf.001"
# Parse Header
klarf_header: klarfrs.KlarfData = klarfrs.parse(filename)
print("File Version:", klarf_header.file_version)
print("Lot ID:", klarf_header.lot_id)
# Parse Defects
klarf_defects: List[klarfrs.DefectList] = klarfrs.parse_defects(filename)
for defect in klarf_defects:
print(f"Defect ID: {defect.defect_id}, X: {defect.xrel}, Y: {defect.yrel}")
Contributing
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.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file klarfrs-0.2.1.tar.gz.
File metadata
- Download URL: klarfrs-0.2.1.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b0d3e335617c741cb9f587f3b795e68756e5faeb38eb8a587dae84146e9c7d3
|
|
| MD5 |
907fe138e53e63ebb440cac3fdf01128
|
|
| BLAKE2b-256 |
5739b83fa6190dd54401175bc2506eff7217b7c33fa1f9ceea7bfb7e2bbaf309
|
File details
Details for the file klarfrs-0.2.1-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: klarfrs-0.2.1-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 765.9 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52f2c346a06eb28fe3a671622bc903fe479f615cc48f176b25d1dd55637a0350
|
|
| MD5 |
c3e75eec4fbc3f17e394917491f0ba0e
|
|
| BLAKE2b-256 |
9a28c2f6952bcad7a7166b7672d97ccf250aa668b0b6ac0d261f1c3aac457aae
|
File details
Details for the file klarfrs-0.2.1-cp313-cp313-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: klarfrs-0.2.1-cp313-cp313-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.13, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
171ac662f6ac4864edfb152dcfc6269b044742f49950b10a115a59414d5ba1b4
|
|
| MD5 |
573c7ad0e9fc3c5b1de6faa75cbbd30c
|
|
| BLAKE2b-256 |
211a127cf8bc1eb2ff991cd7281460e26d6667d02adb32490882bea1d4553de7
|
File details
Details for the file klarfrs-0.2.1-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: klarfrs-0.2.1-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 859.0 kB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ea7c0f279e3e94bfd3b5cfe08104c252843703f357b08282489b4c43bdaf8b4
|
|
| MD5 |
c548c2fabe981e14193588852fe1f38f
|
|
| BLAKE2b-256 |
18cf74fa651b495777ae931a36887505041bc8551c9a61b45dbe5340c240dd34
|
File details
Details for the file klarfrs-0.2.1-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: klarfrs-0.2.1-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 765.8 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4faca5b0900184c5061967de891c08350b858fe4199ae007ab3d366cedb73219
|
|
| MD5 |
12aae16b91ec7f33cb79fc88920d1294
|
|
| BLAKE2b-256 |
717167d3cca84cba82ce5be5f273b10a0bf065c67b1b17b9d1cff88075606ee8
|
File details
Details for the file klarfrs-0.2.1-cp312-cp312-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: klarfrs-0.2.1-cp312-cp312-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.12, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a38a9e4e2a999d0fce3b95d9ed38e26c1898b8e6500ef0644139d8143c96ed64
|
|
| MD5 |
6ea90efb837104708f5385ca72a83ad8
|
|
| BLAKE2b-256 |
7d9ad068e31c8ce42e4f1116ce19a7db83f5d2272cb4f404cfe29eedaeb6ab21
|
File details
Details for the file klarfrs-0.2.1-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: klarfrs-0.2.1-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 859.4 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eed3e3ffa8918ac9bd3af47979237fd2be64ba6a132dd9ae6ddbada07f74011f
|
|
| MD5 |
8b8e5664a0415c04652c9ea78d2ec6c6
|
|
| BLAKE2b-256 |
9b7d7ee9b73961442f181d08c6b86dbf90c41bea6d80cbd6eb32c0eba1915320
|
File details
Details for the file klarfrs-0.2.1-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: klarfrs-0.2.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 767.8 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca9b1bc52d9cf45eed70c4ce7b92e820542e69efb549e4b6ce0617784a8a48d4
|
|
| MD5 |
674fe89f35f573b7c5ee9126d355efc7
|
|
| BLAKE2b-256 |
4e9f7ed6bff7c931485751205a22a4b7741aafae61f19f3804d06bc0029f4f72
|
File details
Details for the file klarfrs-0.2.1-cp311-cp311-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: klarfrs-0.2.1-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e942673a8663bfe18d27c05a9efaf2c15b307b29af4c46e6a869292fb3db125
|
|
| MD5 |
d41d82a26eaa194f781a6088233e2658
|
|
| BLAKE2b-256 |
d976648ad4841c25637f15450b5af0b7d612a8e9c13b1aa1c4af4c81b3ed9943
|
File details
Details for the file klarfrs-0.2.1-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: klarfrs-0.2.1-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 862.9 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e230145defd480345ea6eaff3671fdd300037e9cd11559825178c55419b62fb
|
|
| MD5 |
2008f13b8d6d6ead8705a7cc99ec0fb6
|
|
| BLAKE2b-256 |
b10faae860293b7945c9f85c75c4d07a30eb43fc79b3a1958fec79c448524aa2
|
File details
Details for the file klarfrs-0.2.1-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: klarfrs-0.2.1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 767.9 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c78d593e13e522e2438bdaa38910cd7f207632f5ce131c51fe99753ba434cb9b
|
|
| MD5 |
f4b81aede9b536e10afa0a2d2eba3f21
|
|
| BLAKE2b-256 |
2d346d57893e689731ed1ece67a66fa4c8c14c1786243d1c16dd801861bebfb7
|
File details
Details for the file klarfrs-0.2.1-cp310-cp310-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: klarfrs-0.2.1-cp310-cp310-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 1.0 MB
- Tags: CPython 3.10, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fcd9ecd6c4dce17d25fc437a05b3e1f3e54f6e9fbb436a96425ca62e056cb06
|
|
| MD5 |
8ca13d602cccd6670c86e6e519a4e61d
|
|
| BLAKE2b-256 |
4972e0cbfd6c369ca2324635988e90984aeba35cb05ca940b80d98e6855c5d9a
|
File details
Details for the file klarfrs-0.2.1-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: klarfrs-0.2.1-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 863.3 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e76c99a84c17f08d347d5410f528ee63971608c5d9bc8566e1fdc3899942cc1e
|
|
| MD5 |
5440385c6921a4c6f623df844e2617a0
|
|
| BLAKE2b-256 |
60135ed0a2fb1e66b8e00994d2c01b609518315ae204872b6bd25e59dd42e4ad
|