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")
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
ezstdf-0.0.2.tar.gz
(9.9 kB
view details)
Built Distribution
ezstdf-0.0.2-py3-none-any.whl
(11.3 kB
view details)
File details
Details for the file ezstdf-0.0.2.tar.gz
.
File metadata
- Download URL: ezstdf-0.0.2.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9506d571e613afd15e67160d5a7394947383ba1052e056a6989830ed0f1fe4e |
|
MD5 | f85c66b357a50b498ae4a36cc049ea83 |
|
BLAKE2b-256 | 4ef9bd2ba8674ae4d974707dd37d9e685b32090a9b567075507148d91477a15a |
File details
Details for the file ezstdf-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: ezstdf-0.0.2-py3-none-any.whl
- Upload date:
- Size: 11.3 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 | 0639c2f71b2bf699f338cfa6115de91f5abb155eb3e49db7fa36a87b00f67724 |
|
MD5 | d81d9e8ea6677dbb748c2aa3c63ad36f |
|
BLAKE2b-256 | 9e9f63d673eba6ff33aed8ef7da7020f78a0b601f38135c9c32735d81b59dea5 |