Skip to main content

TDMSlite

TDMSlite is a lightweight python package to write to and read from National Instruments TDMS files with no external dependencies. TDMSlite is available under an MIT license and was originally written by Aidan Benjamin.

Usage

TDMSlite is zero-dependency and allows for platform-agnostic read interface with NI's open standard. Write capability is planned. TDMSlite is hosted on PyPi:

pip install tdmslite

The core object is TDMSDocument, which can be created using a binary stream or with an in-place method (.from_file).

import tdmslite, pathlib

path = pathlib.Path("tdms_example.tdms")

document = tdmslite.TDMSDocument.from_file(path)
group = document['group name']
channel = group.channels['channel name']
raw_data = channel.data # easy!

Limitations

While TDMS is an open standard, it is strangely not opinionated and allows nonstandard formats like 80-bit floats and fixed point numbers. These types are largely relics of old hardware or byproducts of FPGAs (which cannot write fixed point numbers to the filetype regardless...), but are seldom supported by third parties or NI's own extensions.

TDMSlite aims to mostly support these niche features. Floating point numbers are all coerced into vanilla python floats, and any integer (aside from a boolean) is coerced into a python integer. Strings and booleans are preserved as independant data types, and complex casting automatically occurs where applicable.

Data storage is done on a per-channel basis. If a channel's data cannot be embedded in an instance of Python's array.array, a costly list is necessary. Very large datasets full of strings will take signficantly more memory than the equivalent space on disk in the TDMS file by virtue of Python's lists and strings. The price we pay for convenience!

References

Metadata

Release files for tdmslite 2026.11.1

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

Source distribution (sdist)

Source distribution for tdmslite 2026.11.1
File Size Uploaded Provenance Actions
tdmslite-2026.11.1.tar.gz 13.8 kB With provenance Details for tdmslite-2026.11.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tdmslite 2026.11.1
File Interpreter ABI Platform Actions
tdmslite-2026.11.1-py3-none-any.whl Python 3 none any Details for tdmslite-2026.11.1-py3-none-any.whl

Total release size: 26.1 kB

Release files / tdmslite-2026.11.1.tar.gz

Download URL tdmslite-2026.11.1.tar.gz
Size 13.8 kB
Tags Source
SHA-256 checksum
How to use checksums
69808654d9f0a45f092593b70ced968f18e26585db1e76a200953cedc4ec01b8
BLAKE2b-256 checksum
How to use checksums
836d3c6a278266339918b464295899a2d15d05f4ea708865fbda174ffe4aa89c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 1, 2026.

Transparency log

Release files / tdmslite-2026.11.1-py3-none-any.whl

Download URL tdmslite-2026.11.1-py3-none-any.whl
Size 12.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e100fe2caaa9344e013f668e7b4e3a4f451d2c09d7b54214dcb3c01cbf336868
BLAKE2b-256 checksum
How to use checksums
3fda14c4a35684a5df78d17363a9d8f0f897e54ae217b348834709065d111c8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 1, 2026.

Transparency log

Security for tdmslite 2026.11.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tdmslite-2026.11.1.tar.gz

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 Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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