Skip to main content

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


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.3.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

ezstdf-0.0.3-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

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

Hashes for ezstdf-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a05cb2e8464993110b65fe7f78a21f84c98c53f2418bca7208d3dfc7a8982aa0
MD5 beac68cfdd15e88cb2001e711c1a1408
BLAKE2b-256 9e1d74d11053d701e57a73ca6822e27f4a2eb8daec047f1190886d1e096b3f41

See more details on using hashes here.

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

Hashes for ezstdf-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 644402272bacd87b9076bf684686d909bb4ad9f8201e16857c8bf615e7836dfe
MD5 af822bb0d02511fd359850c3e698f94b
BLAKE2b-256 45bb2a4809d2c0f38d84057cbe55960f483131e0a20e469ac332243ec159efa3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page