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

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

Built distribution (wheel)

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

Total release size: 40.6 kB

Release files / tdmslite-2026.11.7.tar.gz

Download URL tdmslite-2026.11.7.tar.gz
Size 23.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a3690b2ec034bf8424f013b2164c47733a0cb52b15ddf2690a5808d360cf1898
BLAKE2b-256 checksum
How to use checksums
a85c6573879214ffdbee4eb11c14fb9fd8893fc2aac05497c6b54cd39683dcd9
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 7, 2026.

Transparency log

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

Download URL tdmslite-2026.11.7-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
998b7d255c9f7f3a70c928cf87908e3b2a04529aa5502996f3f2b5c1f4485099
BLAKE2b-256 checksum
How to use checksums
5020c9e8bff1d524d8908b87e175f1882d42e61904019577b087411a520acbe4
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 7, 2026.

Transparency log

Security for tdmslite 2026.11.7

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