Parsing of STDF file format to DataFrame with Python bindings
Project description
stupidf
stupidf is a library for limited parsing of STDF files. The STDF structure can be used
directly in rust, or alternatively sent out to Python using the parse_stdf function.
STDF is the Standard Test Data Format and is commonly used for high-volume test of semiconductors in Automated Test Equipment (ATE) systems.
The purpose of the library is to quickly and efficiently parse STDF files (which are a fairly unfriendly binary linked list-based format) into more friendly polars DataFrame format.
Example
let verbose = false;
if let Ok(stdf) = STDF::from_fname(&fname, verbose) {
let df: DataFrame = (&stdf.test_data).into();
let df_fmti: DataFrame = (&stdf.test_data.test_information).into();
println!("{df:#?}");
println!("{df_fmti}");
}
Also contains Python bindings to this functionality, e.g.
import stupidf as sf
stdf = sf.parse_stdf("my_stdf.stdf")
stdf['df']
Installation
The rust library can be compiled simply with
cargo build --develop
Docs can be built and viewed with
cargo docs
cargo docs --open
The Python bindings can be made using maturin. Activate the desired virtualenv, then run
maturin develop
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
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 stupidf-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: stupidf-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 4.9 MB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2229147466684393c34bb73cc6d8bf1ca8b05bdeb65501b753db4d0f8e8f6842
|
|
| MD5 |
f0118d3a3c2c2cec42092807a4aab469
|
|
| BLAKE2b-256 |
23ff9ebd689a72ea8e2b9d5c8c5b6faf42f539b7724b0c1b2df69742a04b5979
|