Registry / serialization / nitypes

nitypes

JSON →
library1.1.0pypypiunverified

Data types for NI Python APIs, providing analog, complex, and digital waveforms, frequency spectrums, complex integers, and time conversion. Current stable version is 1.0.1 (latest release). Development releases (1.1.0.dev2) are available. Release cadence is irregular.

pip install nitypes
INSTALL
IMPORT
SIG · NITYPES
N
nitypes
serializationpythonv1.1.0
Install
3.8s avg
Import
Disk
90MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.1.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 90.7MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 3.8s · import 0.000s · 87MB
90MB installed
● package 90MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AnalogWaveform
from nitypes import AnalogWaveform
from nitypes import AnalogWaveform

Quickstart: import and basic usage of nitypes data types.

from nitypes import AnalogWaveform, DigitalWaveform, Scalar, Vector import numpy as np # Create an analog waveform analog_data = np.array([0.5, 1.2, -0.3], dtype=np.float64) t0 = 0.0 dt = 0.001 waveform = AnalogWaveform(data=analog_data, t0=t0, dt=dt) print(waveform) # Create a digital waveform digital_data = np.array([0b1010, 0b1100], dtype=np.uint8) digital_waveform = DigitalWaveform(data=digital_data, t0=t0, dt=dt) print(digital_waveform) # Create a scalar and vector scalar = Scalar(value=5.0) vector = Vector(data=np.array([1, 2, 3])) print(scalar, vector)
Debug
Known issues
breakingIn nitypes 1.0.1, the ordering of Digital Waveform Signal Indices was reversed. signal_index now starts from leftmost bit as highest index, opposite to 1.0.0. Code relying on index ordering must be updated.
fix
Update to nitypes>=1.0.1 and adjust any logic that assumes signal 0 is the most significant bit.
affects: <=1.0.0
gotchanitypes classes like AnalogWaveform and DigitalWaveform are not fully picklable in versions before 1.1.0.dev2. Unpickling may raise errors or produce incorrect data.
fix
Upgrade to nitypes>=1.1.0.dev2 to fix pickling issues.
affects: <1.1.0.dev2
deprecatedThe `unit` property was renamed to `units` for consistency in version 0.1.0-dev9. Using `unit` will raise AttributeError.
fix
Use `.units` instead of `.unit` when accessing unit metadata.
affects: >=0.1.0-dev9
gotchaType hints may break with numpy >= 2.4.x on nitypes versions before 1.1.0.dev2. Incompatible type stubs cause mypy errors.
fix
Upgrade to nitypes>=1.1.0.dev2 to get compatible type hints.
affects: <1.1.0.dev2
Upgrade
Version history
1.1.0latest on PyPI · released Jun 16, 2026
Audit
Dependencies
numpyrequiredCore dependency for array data types.
Agent activity
22 hits · last 30 days
node
20
OpenAI (training)
1
Resources
nitypes — pip install nitypes · libregistry