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.10.31

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.10.31
File Size Uploaded Provenance Actions
tdmslite-2026.10.31.tar.gz 10.3 kB With provenance Details for tdmslite-2026.10.31.tar.gz

Built distribution (wheel)

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

Total release size: 20.1 kB

Release files / tdmslite-2026.10.31.tar.gz

Download URL tdmslite-2026.10.31.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d2eef2cd2ef7f11858552c0c2e7b464b5db14ad908c849b9f0d9f98b7505e344
BLAKE2b-256 checksum
How to use checksums
3534d16c1e10ca9ab5fedbcd94a7b28813315b77b160e516d347b808e62ce3fd
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.10.31-py3-none-any.whl

Download URL tdmslite-2026.10.31-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d3c77464d240c4aeff6ebae034870c6df2861aa26ec7a639d0e9d41d57ce6eb
BLAKE2b-256 checksum
How to use checksums
95cb3b8346a17f7f04244e5b248506479309b4b2dadc84f746a80eb676570f2c
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.10.31

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.10.31.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