Skip to main content

stdf-convert

Read STDF V4 and V4-2007 semiconductor test data files, and convert them to JSON Lines. Parsing is done in Rust by rust-stdf.

import stdf_convert

for record in stdf_convert.records("results.stdf.gz", ["PIR", "PTR", "PRR"]):
    print(record["record_type"], record["data"])

stdf_convert.convert("results.stdf.gz")   # writes results.jsonl

Installing the package also installs the stdf-convert command (stdf-convert --help), or run it without installing: uvx stdf-convert results.stdf.

Each record is a dictionary:

{
    "sequence_number": 42,     # position in the file (unaffected by filtering)
    "byte_offset": 1234,       # offset of the record header in the decompressed stream
    "rec_typ": 15,
    "rec_sub": 10,
    "record_type": "PTR",
    "data": {"TEST_NUM": 1001, "HEAD_NUM": 1, "SITE_NUM": 0, "TEST_FLG": b"\x00", "RESULT": 0.018, ...},
}

Numbers are int or float (including NaN and infinities), byte and bit fields are bytes, and absent optional fields are None. Gzip (.gz), bzip2 (.bz2) and zip (.zip, first member) files are read directly. Errors raise stdf_convert.StdfError; an unknown record type in a filter raises ValueError.

In the JSON Lines output, byte and bit fields are lowercase hex strings ("TEST_FLG":"80") and NaN and infinities are the strings "NaN", "Infinity" and "-Infinity", so every JSON parser can read the file.

Development

cd python
uv venv && uv pip install maturin pytest
uv run maturin develop --release
uv run pytest

Release files for stdf-convert 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stdf-convert 0.1.0
File Size Uploaded
stdf_convert-0.1.0.tar.gz 23.5 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for stdf-convert 0.1.0
File
stdf_convert-0.1.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
stdf_convert-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details
stdf_convert-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details
stdf_convert-0.1.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
stdf_convert-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details

Total release size: 2.9 MB

Release files / stdf_convert-0.1.0.tar.gz

Download URL stdf_convert-0.1.0.tar.gz
Size 23.5 kB
Tags Source
SHA-256 checksum
How to use checksums
76904363b985d8a855bb624a5112f8078f14cea162080cef77f13eadf6283804
BLAKE2b-256 checksum
How to use checksums
8bc5f61c96c5fe0347ff916cf4d8303f54f1e4f0bc281622c8730e15c2fe4364
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release files / stdf_convert-0.1.0-cp39-abi3-win_amd64.whl

Download URL stdf_convert-0.1.0-cp39-abi3-win_amd64.whl
Size 569.0 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
bdbae5a878d3992835606328858cfd9bafa4696f3ce6a5701d616f763e8181fb
BLAKE2b-256 checksum
How to use checksums
706f618f7de776e03d4e4b90d27d41811d270d7ba9015f3cbc410405efb21b92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release files / stdf_convert-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL stdf_convert-0.1.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 608.5 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
d62d94d7d574cdcf052cb6f5217a7db9d7685201dd3ba55172c986f23c674ad7
BLAKE2b-256 checksum
How to use checksums
6f4bc0458c76d48ab8c966388026f9144d8ffb749db8490944f1daab225cc49a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release files / stdf_convert-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL stdf_convert-0.1.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 573.6 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
0d57b96f4d56626c0d4335625165552c7f5784fad943caeb566fa99666a355dd
BLAKE2b-256 checksum
How to use checksums
9b62ce3ca809c96c0c05fe851bbcde3453af74b29b7276c041d0f832b817acc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release files / stdf_convert-0.1.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL stdf_convert-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
Size 549.9 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6518b97e4de1b94e03c0d1ba1edbcb3065d48925edb6b575a9aabe7c7570b639
BLAKE2b-256 checksum
How to use checksums
fc519f2be199b346c0a06266fea17a9d08edce70b7d44b46c78fba0173a0ccb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release files / stdf_convert-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL stdf_convert-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 591.9 kB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
6d73f7231136d8df5d46d816d0bfed7cddbbebc2d917307b12faf42facf5d932
BLAKE2b-256 checksum
How to use checksums
bce62caa1ce07d79d08e242034a7db3ebccc365de5e8630bcf71b45455761528
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

6 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page