An easy to use and fast parser for STDF files in python.
Project description
ezstdf
ezstdf is a python package for parsing "Standard Test Data Format" files with a focus on speed. Parse a STDF file with thousands of records in less than a second.
Installation
pip install --upgrade ezstdf
Dependencies
- pandas (required)
Features
- Can read STDF (binary, V4) and ATDF (clear text, V2) files
- Most record types are supported, unsupported ones are skipped for now
- Convert records to Pandas data frames
- Export to Excel file (requires openpyxl)
- Auto-detection of endianness
- Fast and easy to use
Examples
Parse a file:
from ezstdf.StdfReader import StdfReader
stdf = StdfReader()
stdf.parse_file("../sample_files/sample.atdf")
# each record type can now be accessed as a data frame
# example: access the File Attributes Record (FAR)
df_far = stdf.far
print(df_far)
Export as Excel. Each sheet is a difference record, and each row a sub-record.
stdf.to_excel("test.xlsx")
History
- v0.0.1: initial release
- v0.0.2: fixed meta info in pypi
- v0.0.3:
- better tolerance to illegal characters in strings
- fixed parsing of jx and kx fields
- support for mpr
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 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 ezstdf-0.0.3.tar.gz.
File metadata
- Download URL: ezstdf-0.0.3.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a05cb2e8464993110b65fe7f78a21f84c98c53f2418bca7208d3dfc7a8982aa0
|
|
| MD5 |
beac68cfdd15e88cb2001e711c1a1408
|
|
| BLAKE2b-256 |
9e1d74d11053d701e57a73ca6822e27f4a2eb8daec047f1190886d1e096b3f41
|
File details
Details for the file ezstdf-0.0.3-py3-none-any.whl.
File metadata
- Download URL: ezstdf-0.0.3-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
644402272bacd87b9076bf684686d909bb4ad9f8201e16857c8bf615e7836dfe
|
|
| MD5 |
af822bb0d02511fd359850c3e698f94b
|
|
| BLAKE2b-256 |
45bb2a4809d2c0f38d84057cbe55960f483131e0a20e469ac332243ec159efa3
|