Skip to main content

Invisensing — Python SDK for the Audace DAS environment

invisensing is the official Python library for reading Distributed Acoustic Sensing (DAS) acquisition files produced by the Audace platform. It handles every file format the platform writes (.dat, .h5 / .hdf5, .tdms, .sgy) through a single uniform API, and exposes the channels each file actually contains — phase / amplitude / arctan / I / Q / raw samples — in one method call, with the right dtype and optional physical-unit scaling. What a file holds comes from its content type (data format v1, see below). A file written before the content type existed (content type 0) is read from its header flags as 1.3.0 read it, except that:

  • a single column flagged UNSIGNED reads as unsigned integers (uint16 for 2-byte samples) instead of signed;
  • File.distance uses the producer's speed of light in the fibre: the 2·10⁸ m/s every recording made before the fibre group index existed was acquired at (3.3 % shorter than 1.3.0's), the file's own speed on a newer one (see The fibre group index below);
  • a SEG-Y file's textual header (ASCII or EBCDIC) is read, and its integer samples at their own width;
  • File.dtype is the dtype read_lines() returns.

A file written between June 2026 and data format v1 that carries a content type is classified by it — except a sw_custom file of an older Sandbox and a console archive export under a paired content type without the INTERLEAVED flag, which are read from their flags. CHANGELOG.md lists every change since 1.3.0.

The library is format-agnostic but mode-faithful: it never silently re-derives one demodulation product from another. The on-board DAQ DSP chain (fading suppression, spatial differential, detrend filter) is not reproducible in software from an earlier tap, so the channel you can extract is the one the acquisition wrote. Inspect file.mode to dispatch; the SDK raises a clear ValueError if you call an extractor that doesn't apply.

The hot path (header parsing, bytes → numpy conversion, de-interleave) is implemented in Rust and exposed through PyO3, so reading a multi-GB capture stays fast even from Python.

Installation

pip install invisensing

That's it — every supported file format (DAT, HDF5, TDMS, SEG-Y) works out of the box. The default install pulls in numpy, h5py, hdf5plugin, npTDMS, and segyio so any file written by the Audace FileWriter — HDF5 compressed with zstd included — can be opened without further setup.

Wheels are built from a Rust extension; pip handles the native build transparently. No Rust toolchain is required for end users.

Note — the format extras (pip install invisensing[hdf5] etc.) are still recognised for backwards compatibility with older installation guides, but they are no-ops now: every backend is part of the default install.

Quick start

from invisensing import File, Mode

with File("phase/2026-11-03_10-00-00.h5") as f:
    print(f)                       # File('…', mode=phase, shape=…, …)
    print(f.content_type_name)     # "dui_coherent_phase": what the samples are
    print(f.duration, "s")
    print(f.distance, "m of fibre")

    # The Mode enum lets you dispatch cleanly on what the file contains.
    mode = f.mode
    if mode is Mode.RAW:
        data = f.read_lines(1000)                  # (1000, line_size) ADC codes
    elif mode is Mode.PHASE:
        phase = f.get_phase()                      # (n, positions) f32 radians
    elif mode is Mode.AMPLITUDE:
        amplitude = f.get_amplitude()              # (n, positions) u16 or f32
    elif mode is Mode.ARCTAN:
        rad = f.get_arctan_radians()               # (n, positions) f32 radians
    elif mode in (Mode.I, Mode.Q):
        column = f.read_lines(1000)                # (n, positions) i16
    # Files written before data format v1 may hold pairs:
    elif mode is Mode.IQ:
        iq = f.get_iq()                            # (n, positions) complex64
    elif mode is Mode.ARCTAN_MAGNITUDE:
        arctan, magnitude = f.get_arctan(), f.get_magnitude()
    elif mode is Mode.PHASE_AMPLITUDE:
        phase, amplitude = f.get_phase(), f.get_amplitude()

The examples use if / elif: the SDK supports Python 3.9, which has no match statement.

Streaming large files

read_lines(n) advances a cursor; iterating the file yields one pulse at a time:

with File("long_capture.h5") as f:
    while f.lines_left:
        chunk = f.read_lines(10_000)
        process(chunk)

# Or, one pulse at a time:
with File("long_capture.dat") as f:
    for pulse in f:
        process(pulse)

For ad-hoc scripts on small files, read_all() returns everything in one allocation.

Output dtypes — raw codes vs. physical units

I, Q, arctan, and √(I²+Q²) are physically continuous quantities (volts for I/Q/magnitude, radians for arctan) that the card encodes as fixed-point integers. The SDK offers two flavours of extractor for each lane:

  • Default extractors (get_i, get_q, get_arctan, get_magnitude) return the wire dtype — fast, no copy beyond the de-interleave, no precision loss on round-trip writes.
  • Physical-unit extractors (get_i_volts, get_q_volts, get_iq_volts, get_arctan_radians, get_magnitude_volts) return float32 numpy arrays in the natural physical unit (volts or radians). Use these when you start doing DSP — they save you from remembering the scaling constants.

The full mapping per mode:

Mode Method dtype Unit Scaling applied
Raw read_lines() int16 ADC code —
I / Q get_i() / get_q() int16 ADC code —
I / Q get_i_volts() / get_q_volts() float32 V i16 × range / 32768
Arctan get_arctan() int16 fixed-point 32767 ↔ +π
Arctan get_arctan_radians() float32 rad i16 × π / 32768
Amplitude get_amplitude() uint16 (card) / float32 count —
Amplitude get_magnitude_volts() float32 V card magnitude only: × range / 32768
Phase read_lines() / get_phase() float32 rad —
Variance / LogVariance get_variance() / get_log_variance() float32 source unit² / — 10^v − 1 ↔ log10(1 + v)
IQ read_lines() int16 ADC code wire layout [I, Q, I, Q, …]
IQ get_i() / get_q() int16 ADC code de-interleave only
IQ get_iq() complex64 ADC code I + j·Q packed
IQ get_i_volts() / get_q_volts() float32 V i16 × range / 32768
IQ get_iq_volts() complex64 V real/imag both in volts
ArctanMagnitude read_lines() int16 mixed wire layout [atan, √, atan, √, …]
ArctanMagnitude get_arctan() int16 fixed-point 32767 ↔ +π
ArctanMagnitude get_arctan_radians() float32 rad i16 × π / 32768
ArctanMagnitude get_magnitude() uint16 ADC code bitcast from wire i16
ArctanMagnitude get_magnitude_volts() float32 V u16 × range / 32768
PhaseAmplitude get_phase() / get_amplitude() float32 rad / count de-interleave only

A phase is always floating-point radians — the acquisition converts it before writing, so consumers never need to know the card's scaling.

f.dtype always reflects what read_lines() will return: the content type's sample type (int16, uint16, float32); on a file written before the content type existed (and the older files read from their flags), sample_size and the FLOAT / UNSIGNED flags.

When to pick which

with File("iq.dat") as f:
    # Quick QC / dumping — keep the wire codes:
    i = f.get_i()                      # int16, fast
    plt.plot(i[0])                     # ADC codes on Y axis

    # Real DSP — work in volts:
    iq_v = f.get_iq_volts()            # complex64, in volts
    envelope_v = np.abs(iq_v)          # volts
    phase_rad  = np.angle(iq_v)        # radians, wrapped

with File("arctan_mag.dat") as f:
    rad = f.get_arctan_radians()       # float32, ±π
    vol = f.get_magnitude_volts()      # float32, ≥ 0 volts

Reading a 4 GB DAT capture stays a 4 GB numpy array if you use the default extractors; the *_volts / *_radians family allocates a new float32 array (so 2× the raw size for i16 / 2× for u16, 8× for the complex64 in get_iq_volts).

Channel extractors — what they mean per mode

file.mode comes from the file's content type (from its header flags on a file written before the content type existed, on a sw_custom file of a Sandbox older than data format v1, which kept its input's flags, and on a console archive export written before v1 under a paired content type without the INTERLEAVED flag, which kept its source's header over one column per zone: f.header.mode_from_flags). Since data format v1 a recording holds one quantity per file: an interleaved product of the card or of the demodulation is split into two files, same name, sibling directories (phase/ + amplitude/, arctan/ + magnitude/, i_component/ + q_component/; f.sibling_path finds the other one). The paired modes are the files written before.

Mode Layout (per pulse) Extractor(s) Dtype out
Mode.RAW [s0, s1, …, sN-1] read_lines() int16
Mode.PHASE [φ0, φ1, …] get_phase() float32 (radians)
Mode.AMPLITUDE [a0, a1, …] get_amplitude() (= get_magnitude()) uint16 (card) / float32
Mode.ARCTAN [atan0, atan1, …] get_arctan(), get_arctan_radians() int16 / float32
Mode.I, Mode.Q [I0, I1, …] get_i() / get_q() int16
Mode.CUSTOM a script's output read_lines() per content type
Mode.VARIANCE, Mode.LOG_VARIANCE zone variances (archive exports) get_variance(), get_log_variance() float32
Mode.IQ [I0, Q0, I1, Q1, …] get_i(), get_q(), get_iq() int16 / int16 / complex64
Mode.ARCTAN_MAGNITUDE [atan0, √0, atan1, √1, …] get_arctan(), get_magnitude() int16 / uint16
Mode.PHASE_AMPLITUDE [φ0, a0, φ1, a1, …] get_phase(), get_amplitude() float32

Each extractor reads from the file or from a buffer you've already read — pass data= to reuse a buffer across extractors so the cursor doesn't double-advance:

with File("iq.dat") as f:
    chunk = f.read_lines(1000)
    i = f.get_i(chunk)                # reuses the buffer
    q = f.get_q(chunk)                # same — no extra file read
    # equivalent: f.channels(chunk) returns {"i": …, "q": …, "iq": …}

Calling the wrong extractor for the file's mode raises a clear error that names both the actual and the expected mode — no silent garbage:

>>> with File("phase.dat") as f:
...     f.get_i()
ValueError: get_i: file mode is 'phase', but this extractor only
applies to 'i' or 'iq'. Inspect file.mode to dispatch — see the Mode enum docs.

Format auto-detection

The format is picked from the file suffix:

Suffix Backend
.dat Native Rust (no third-party dep)
.h5, .hdf5 h5py
.tdms npTDMS
.sgy, .segy segyio

If your file has no suffix or an unusual one, force the backend:

File("acquisition_data", format="dat")

Metadata at your fingertips

with File("acquisition.dat") as f:
    f.line_size                 # samples per pulse on the wire
    f.positions_per_line        # spatial positions per pulse (= line_size/2 if INTERLEAVED)
    f.sample_size               # bytes per sample
    f.sample_rate               # Hz
    f.trig_frequency            # Hz, the REQUESTED trigger rate (int)
    f.trig_frequency_real_hz    # Hz, the rate the card really fired at (float)
    f.trig_frequency_is_exact   # True when both are equal (or the real one is unknown)
    f.trig_clock_hz             # card rational, or None when unknown —
    f.trig_period_ticks         #   real rate = trig_clock_hz / trig_period_ticks
    f.line_time_ns(i)           # acquisition time of pulse i, int ns (Unix epoch)
    f.num_lines                 # total pulses recorded
    f.lines_left                # remaining behind the cursor
    f.duration                  # seconds (= num_lines / trig_frequency_real_hz)
    f.distance                  # metres of fibre covered by one pulse
    f.light_speed_in_fiber_m_s  # m/s every metre is labelled with (2e8 on old files)
    f.fiber_group_index         # its fibre group index: 1.4682, 1.49896229 on old files
    f.range                     # ADC voltage range (V)
    f.timestamp                 # start time as the format spells it (see below)
    f.content_type_name         # what the samples are: "dui_coherent_phase", "hw_amplitude"…
    f.quantity, f.unit          # "phase", "rad" — from the content type
    f.card                      # card code "p18" / "p21" / "s125" / "s500", or None
    f.format_version            # 1 for data format v1, 0 before
    f.duration_s                # whole seconds the writer recorded (None: not said)
    f.spatial_step_m            # metres between two positions
    f.temporal_step_s           # seconds between two lines
    f.sibling_path              # the other file of a split pair, or None
    f.compression               # HDF5: "NONE" / "ZSTD" / "ZSTD_LOSSY_1E4"; None otherwise
    f.quantization_max_error_rad  # ZSTD_LOSSY_1E4 bound (rad), else None
    f.trailing_bytes            # DAT cut mid-line: bytes not read (0 normally)
    f.dtype                     # numpy dtype of the wire samples
    f.shape                     # (num_lines, line_size)
    f.spatial_shape             # (num_lines, positions_per_line)

    # Flag inspection — works as a property or as a method call.
    f.is_demodulated            # True / False
    f.is_interleaved
    f.is_float
    f.is_phase
    f.is_unsigned               # arctan/√ pair, or the split magnitude/ column
    f.is_ac                     # ADC AC-coupled
    f.is_hiz                    # ADC high-impedance

    # Full parsed header (byte-exact wire fields):
    f.header.num_channels       # active socket channels (1 or 2)
    f.header.content_type       # on-disk content descriptor byte (see below)
    f.header.content_type_name  # lowercase tag, e.g. "sw_mozart" / "raw" / "undefined"
    f.header.card               # card code (DAT bytes 65..81), or None
    f.header.acquisition_ns     # precise acquisition time, i64 ns Unix (0 if legacy ASCII)

content_type — what the samples are

The header carries a content_type byte (offset 64; HDF5 attribute, TDMS property, SEG-Y text line CONTENT-TYPE) describing the meaning of the samples. One value stands for one quantity, one sample type and one producing chain: dui_coherent_phase (19) is an f32 phase in radians out of the Phase+ demodulation, hw_amplitude (5) the card's u16 magnitude, viz_variance (27) zone variances exported from the console's archives… It is the reference for every file that carries it. Legacy captures (which had no such byte) decode as undefined (0) and keep the flag-based reading they always had.

from invisensing import File, content

with File("acquisition.h5") as f:
    content.quantity_of(f.content_type)   # "phase"
    content.unit(f.content_type)          # "rad"
    content.method_of(f.content_type)     # "DUI_COHERENT"
    content.to_physical(3)                # arctan → rad: v · π / 32768

invisensing.content is the registry (values 0–32) with the acquisition's helpers (quantity_of, members, member_of, sample_type, is_phase, is_stream_only, split_children, method_of, unit, to_physical…); it is checked against the registry the acquisition publishes. Since 1.5.0 it knows the phases computed on the software front end by DUI and DUI_STATEFUL (dui_arctan_phase 29, dui_stateful_arctan_phase 30, Mode.PHASE) and their pairs with the amplitude kept (31, 32); the software front end's amplitude (sw_amplitude_sac, 11) has no single method_of any more, as several methods write it. A value this SDK does not know reads unknown(<n>) — never undefined — unless the file names it itself (HDF5 / TDMS content_type_name, used by f.content_type_name), and its samples are decoded from sample_size and the flags, with a warning.

f.is_mozart follows the content type (True for sw_mozart and sw_mozart_plus; None for raw); on a legacy file it keeps reading the MOZART flag. The SCHUBERT flag is deprecated: nothing is read from it, and False means "not Mozart", not "Schubert".

A magnitude column — the magnitude/ child of a split arctan/magnitude stream, hw_amplitude — reads as uint16 in every format (an HDF5 stored as int16 with unsigned = 1, or as uint16).

The acquisition timestamp is also surfaced as a precise i64 nanosecond Unix instant via f.header.acquisition_ns (it is 0 when the file used the legacy ASCII timestamp string, which is still readable through f.timestamp). For HDF5 it comes from the timestamp_ns attribute (since 1.3.0; earlier versions reported 0 for HDF5); in a TDMS from the timestamp_ns property and in a SEG-Y from the TIMESTAMP NS text line of data format v1. Older TDMS and SEG-Y files carry no absolute time — only a display string (f.timestamp, the node's local time with its UTC offset) — and neither format carries the time flags.

Real trigger frequency (since 1.3.0)

A card fires on a divided clock, so it hits the requested trigger rate exactly only when that rate divides its clock. A card on a 250 MHz clock asked for 75 kHz programs a period of floor(250e6 / 75000) = 3333 ticks and fires at 250e6 / 3333 = 75007.5008 Hz (+100 ppm): counting time with the requested 75 000 Hz drifts by 0.36 s per hour. Recordings made with an inexact rate (HDF5 only — the acquisition refuses DAT, TDMS and SEG-Y for them) carry the card's exact rational:

with File("acquisition.h5") as f:
    f.trig_frequency            # 75000           — what was requested
    f.trig_frequency_real_hz    # 75007.50075...  — what the card did
    f.trig_frequency_is_exact   # False
    f.trig_clock_hz, f.trig_period_ticks   # (250000000, 3333)

    # Time axes and durations: use the real rate…
    t_s = np.arange(f.num_lines) / f.trig_frequency_real_hz
    # …or the exact integer timeline the acquisition stamped:
    t0 = f.line_time_ns(0)      # header.acquisition_ns
    t1 = f.line_time_ns(75_000) # t0 + 999_900_000 (not 1 s)

line_time_ns(i) is acquisition_ns + ⌊i · ticks · 10⁹ / clock⌋ in exact integer arithmetic — the same integer the Audace acquisition computes. On an exact rate (2 000 Hz, 10 kHz, 200 kHz…) and on every file without the rational (older recordings, external trigger, DAT/TDMS/SEG-Y), the properties fall back on trig_frequency and every time and duration is exactly what 1.2.x computed. Where the rational is stored: HDF5 attributes trig_clock_hz (u32), trig_period_ticks (u32) and trig_frequency_real_hz (f64); in the 128-byte header, bytes 88..92 and 92..96 (u32 LE, 0 = unknown). A rational further from trig_frequency than a card's own quantization puts it — f / q + 1 Hz, q = ⌊clock / 10 MHz⌋ ticks (25 on a 250 MHz clock: up to 4 % near 10 MHz) — does not describe the file and is ignored.

Corrected line times (since 1.4.0)

The Audace acquisition corrects the drift of the card's oscillator and the shots it lost (its time map); the recorder writes the axis of each HDF5 file into its attributes, and line_time_ns(i) follows it:

with File("acquisition.h5") as f:
    f.time_correction           # "cardclock-v1" | "none" | None (older file)
    f.line_time_ns(1000)        # corrected time of line 1000, exact int ns
    f.line_time_ns(1000, nominal=True)  # the count, as 1.3.0 gave it
    t = f.times_ns()            # every line, int64 numpy vector
    f.trig_frequency_measured_hz, f.time_uncertainty_ns

On a corrected file timestamp_ns is the corrected start and timestamp_nominal_ns the count. Spectra and filters keep trig_frequency_real_hz as their sampling rate. Files without the attributes are timed exactly as before.

Data format v1 (since 1.4.0)

Recordings made since the acquisition's data format v1 describe themselves in their header (all formats; 0 / absent on older files):

  • the content type fixes the sample type: a v1 file writes its FLOAT, UNSIGNED, INTERLEAVED, DEMODULATED, PHASE and MOZART flags as 0 (only AC and HIZ stay), and this SDK types and classifies it from the content type alone (f.dtype, f.mode, the is_* properties). Files with content type 0 are read from their flags, as before;
  • every file holds one quantity (a pair is split into two files, f.sibling_path);
  • f.format_version (1), f.duration_s (written when the file closed), f.spatial_step_m and f.temporal_step_s (DAT bytes 104..120; HDF5 / TDMS attributes in f64; SEG-Y text lines);
  • f.card: the code of the card that recorded it — p18, p21, s125 or s500 — on every file (before v1 only DAT headers carried it, as a tag read as the same code: every run's from 2026-07-15 to 2026-10-13, then a two-card run's);
  • new HDF5 files are named .h5; .hdf5 is read as always;
  • SEG-Y textual headers are read from the file's bytes, in ASCII (what the acquisition writes) or EBCDIC;
  • the archive exports of zone variances: viz_variance (27) and viz_logvar (28, the console's Log scale log10(1 + variance)), with f.get_variance() / f.get_log_variance() and, in HDF5, f.source_content_type (the column the variance was computed from).

The header bit 0x020, never set by any producer, is now FLAG_RESERVED.

The fibre group index (since 1.7.0)

A DAS times the round trip of a pulse; the speed of light in the fibre turns that time into metres. The Audace acquisition takes the fibre's group index n as a parameter (default 1.4682, Corning SMF-28e+ at 1550 nm), derives one speed v = round(c / n) m/s, half away from zero (204 190 477 m/s at 1.4682), and writes it into every file: DAT header bytes 124..128 (u32), HDF5 attributes and TDMS properties light_speed_in_fiber_m_s and fiber_group_index (the index exactly as configured), SEG-Y line FIBER GROUP INDEX: n (LIGHT SPEED v M/S). Every metre this SDK reports uses the file's speed:

with File("phase/2026-11-18_10-00-00.h5") as f:
    f.light_speed_in_fiber_m_s  # 204190477
    f.fiber_group_index         # 1.4682 (a DAT: the index of its speed)
    f.spatial_step_m            # v / (2 · sample_rate): 0.408381 m at 250 MS/s
    f.distance                  # positions_per_line · spatial_step_m
    f.gauge_length_m            # the gauge the producer applied, in these metres

A recording made before the field carries no speed and was acquired at the legacy 2·10⁸ m/s (index 1.49896229): it reads exactly as before (0.4 m per position at 250 MS/s). If its fibre is known, label it at its index — only the labels change, never the samples:

with File("phase/2026-06-01_10-00-00.dat", fiber_group_index=1.4682) as f:
    f.distance                  # 2.0952 % longer than at 2e8 m/s
    f.recorded_fiber_group_index  # 1.49896229: what the file says

The spatial step, the gauge length (and with it the strain factors) and the trigger pre-roll follow the given index; f.header is the relabelled header, so f.export_dat() writes the new speed. Any index from 1 to 100 is accepted (ValueError below 1, above 100, NaN or infinite). light_speed_of_group_index(n) and group_index_of_light_speed(v) give the acquisition's own conversions.

Phase as strain, in nm/m (since 1.6.0)

A differential phase measured over a gauge of g metres of fibre is a strain. Open a phase file with phase_unit="nanostrain" and every phase sample is read as strain, in nm/m:

from invisensing import File, NANOSTRAIN_PER_RAD_METRE

with File("phase/2026-11-12_10-00-00.h5", phase_unit="nanostrain") as f:
    f.gauge_length_m        # 9.6: the gauge the producer applied, metres
    f.unit, f.quantity      # "nm/m", "strain"
    strain = f.get_phase()  # float32, nm/m
    for line in f: ...      # every read path converts
strain [nm/m] = phase [rad] / gauge_length_m [m] × NANOSTRAIN_PER_RAD_METRE
  • NANOSTRAIN_PER_RAD_METRE = 110.37 nm/m per rad/m, from ΔΦ = 2β(n + Cε)·ε·L (β = 2π/λ, n the core index, Cε the photo-elastic coefficient, L the gauge length) at λ = 1550.12 nm and n = 1.46. It is a constant of the SDK, not a parameter. Its n is the core's phase index, not the fibre group index the file's metres are labelled at: it does not follow fiber_group_index (the gauge length, a distance, does).
  • The gauge length comes from the file: the one the producer applied (a whole number of positions), written on a phase only, and only by an Audace release that records it — DAT header bytes 120..124, HDF5 attribute and TDMS property gauge_length_m, SEG-Y line GAUGE LENGTH. File.gauge_length_m gives it (None without one); File.nanostrain_per_rad the factor.
  • Refusals (ValueError at open, naming the content type): a file that holds no phase (raw, I/Q, arctan, amplitude, script output, variances), and a phase that does not record its gauge length. Audace writes it into a phase file only from the release that adds it, so nanostrain and strain_rate need a recording made with that release or a later one; a MOZART / MOZART_PLUS phase (its gauge is set by the optics) and a file read from its flags carry none. No gauge length is ever assumed.
  • The factor NANOSTRAIN_PER_RAD_METRE / gauge_length_m is computed once in float64 and rounded once to float32; every phase sample then takes one float32 multiply by it, in place on the buffer just read, in the native core (AVX-512 or AVX2 when the CPU has them, bit-identical to the scalar path). The dtype stays float32.
  • On a file of phase/amplitude pairs (written before data format v1) only the phases are converted; the amplitude is left as stored.
  • quantization_step_rad / quantization_max_error_rad (ZSTD_LOSSY_1E4) stay in radians: times nanostrain_per_rad, they are in nm/m.
  • export_dat still writes the file's own samples, in radians.
  • phase_unit="rad", the default, reads every file exactly as before.

Phase as strain rate, in nm/m/s (since 1.6.0)

A phase file holds the accumulated (unwrapped) phase of each line. Open it with phase_unit="strain_rate" and every phase sample is read as the strain rate of its line, in nm/m/s: the strain increment from the previous line times the line rate.

strain_rate[n] [nm/m/s] = (strain[n] − strain[n−1]) [nm/m] × f_trig [Hz]
                        = (phase[n] − phase[n−1]) [rad] × NANOSTRAIN_PER_RAD_METRE / gauge_length_m × f_trig

strain is the phase_unit="nanostrain" reading above and f_trig the rate the card really fired at, File.trig_frequency_real_hz (the requested trig_frequency on a file that does not carry the exact clock).

with File("phase/2026-11-12_10-00-00.h5", phase_unit="strain_rate") as f:
    f.unit, f.quantity          # "nm/m/s", "strain rate"
    f.strain_rate_per_rad       # float32(110.37 / 9.6 × f_trig): the factor
    rate = f.get_phase()        # float32, nm/m/s; rate[0] is NaN
    f.time_gaps                 # ((first, end), ...): lines after lost shots
  • Line 0 is NaN in its phase lanes: nothing precedes it (a file is read on its own; the previous file of the recording is never opened).
  • Gaps are NaN: a line that comes more than 1.5 line periods after the previous one on the file's corrected time axis (File.time_gaps, an HDF5 stamped from the card's time map: the line after shots the card lost) holds an increment over several periods; it reads NaN rather than being divided by one period. A file timed by its count (DAT, TDMS, SEG-Y, an HDF5 without the time map) carries no gap: every increment is taken as one period.
  • Blocks and seeks are seamless: every read path (read_lines, read_all, iteration, get_phase, channels, get_lines) carries the previous line; reading the file in blocks of any size gives the bits of read_all(), and a read after seek_lines(k) reads line k − 1 first.
  • Exact arithmetic order: the factor NANOSTRAIN_PER_RAD_METRE / gauge_length_m × f_trig is computed once in float64 and rounded once to float32; each phase sample takes one float32 subtraction of the previous line's stored phase, then one multiply by the factor (float64 throughout for a float64 dataset). Same AVX-512 / AVX2 / scalar kernels as the strain, bit-identical to each other.
  • Refusals (ValueError at open): those of "nanostrain", and a file whose trigger frequency is unknown (0).
  • Pairs: only the phase lanes; the amplitude keeps its bits. export_dat still writes radians.

Writing files

from invisensing import File, export_dat
import numpy as np

samples = np.random.randn(10_000, 512).astype("float32")
export_dat(
    "out.dat",
    samples,
    sample_rate=250_000_000,
    trig_frequency=2_000,
    range_v=1.0,
    timestamp="2026-05-25_12:34:56",
)

# A file of data format v1: say what the samples are.
export_dat("phase.dat", samples, sample_rate=250_000_000, trig_frequency=2_000,
           content_type=17, card="p21")

# Lines 1000..2000 of a recording, with its whole header (content type,
# card, steps, trigger pre-roll, the card's rational, start time of line 1000):
with File("phase/2026-11-03_10-00-00.h5") as f:
    f.export_dat("excerpt.dat", start=1000, count=1000)

export_dat writes the 128-byte Audace header (matching the C-side wire format byte-for-byte) followed by the array's raw samples. Without a content type the FLOAT flag is set automatically when data.dtype.kind == 'f'. With header=f.header it copies every field of the source, as the acquisition's conversions do: a content type of the registry gives a v1 file (its flags, steps, card code, speed of light in the fibre, and the duration of the lines written), anything else a legacy copy. fiber_group_index=n stamps the speed of n (with header=, the header is relabelled at n first). A recording whose card fired at an inexact rate is refused (keep it in HDF5).

API stability

Everything exported via from invisensing import * is part of the stable public API starting from version 1.0.0. We follow semantic versioning:

  • Patch releases (0.2.x): bug fixes, performance improvements.
  • Minor releases (0.x.0): additive changes only (new methods, new formats, new optional arguments). Existing code keeps working without changes.
  • Major releases (x.0.0): breaking changes — announced via the changelog with a migration guide.

Backwards compatibility with the legacy SDK

The original invisensing.File module is preserved unchanged:

import invisensing.File as iFile

file = iFile.File("acquisition.dat")
print(file.get_line_size(), file.get_trigger_frequency())
print(file.is_demodulated(), file.is_acquisition_ac())

while file.get_lines_left() > 0:
    data = file.get_lines(5)
    # process …

iFile.export("out.dat", data, file.get_timestamp(),
             file.get_trigger_frequency(), file.get_sample_rate(),
             file.get_range())

The legacy class delegates to the same Rust-backed implementation as the modern File, so legacy scripts run at the new speed without any modification.

Performance & safety

Performance

The lib is built to be the fastest credible way to get DAS samples into a numpy array in Python.

  • DAT reads stream through a BufReader<File>; the inner read_exact runs with the GIL released so a second Python thread can do work while the OS is blocked on disk.
  • No zero-init pass: the typed-conversion path allocates an uninitialised Vec<T> (via Vec::with_capacity + set_len) and fills it with one copy_nonoverlapping. Saves the 4 GB of pointless DRAM writes a vec![0; n] would do on a 4 GB acquisition.
  • De-interleave kernels read the contiguous numpy buffer via as_slice() and iterate with chunks_exact(2) — LLVM auto-vectorises this into SSE/AVX gather-extract instructions on x86_64. The output Vec is also set_len'd, no per-element capacity check.
  • HDF5 / TDMS / SEG-Y loading is handled by their respective Python libraries (themselves C-backed). The de-interleave step always runs through the same Rust kernels, regardless of the source format — channel extraction perf doesn't depend on the file format.
  • Zero allocation on the hot path in the channel extractors: each call returns a single freshly-allocated numpy array; no intermediate scratch buffers, no per-row copies.
  • Phase to strain (phase_unit="nanostrain") multiplies in place, with AVX-512F or AVX2 kernels picked at run time (invisensing._core. simd_level(); INVISENSING_SIMD=scalar|avx2|avx512 caps it), each bit-identical to the scalar loop. The conversion is memory-bound: on an AVX-512 server it runs at the speed of numpy's in-place multiply (≈ 2.6·10⁹ samples/s, ≈ 21 GB/s read + write) and adds ≈ 7 % to a read_all() of a DAT from the page cache.
  • Phase to strain rate (phase_unit="strain_rate") is one in-place pass (subtract the previous line, multiply) on the same kernels; also memory-bound. On a 268 MB float32 block (out of cache, one core of an AVX-512 server) it runs at memcpy speed, ≈ 11 GB/s of phase converted (scalar 8.4, AVX2 10.1, AVX-512 11.0 GB/s; np.copyto 10.8 GB/s), ≈ 3.7× numpy's np.diff(a, axis=0) * f (3.0 GB/s), which allocates two arrays and makes four passes.

Measured on a recent laptop (single-threaded, release build):

Operation Throughput
read_lines() from a .dat (i16 IQ, 100 MB chunk) ≈ 3.9 GB/s
get_i() + get_q() on a pre-loaded buffer ≈ 3.0 GB/s
get_iq() → complex64 packing ≈ same order of magnitude

Reproduce with pytest tests/test_performance.py -v -s. The throughput sanity tests also fail loudly (assertion) if a regression cuts perf below the floor — > 50 MB/s for read_lines, > 100 MB/s for the kernels — so a future refactor can't silently re-introduce the Vec::push / vec![0; n] anti-patterns.

Safety

  • Strict header validation at open time: a File constructor rejects up front any header with line_size <= 0, sample_size not in {1, 2, 4, 8}, or an INTERLEAVED file with an odd line_size. The downstream maths can therefore assume positive sizes everywhere.
  • Bounded unsafe: the whole extension contains three small unsafe blocks (uninit Vec via set_len, the byte→typed primitive copy, and the i16→u16 bitcast for the magnitude lane). Each one has a one-line invariant in a // SAFETY: comment and is exercised by the 1-million-sample correctness tests in tests/test_performance.py. The strain kernels add the calls of their #[target_feature] functions, made only once the CPU is known to run the feature, and unaligned vector loads and stores within chunks of exactly one vector; every kernel (strain and strain rate) is checked bit for bit against the scalar loop (src/strain.rs, tests/test_strain_kernels.py).
  • Clear Python exceptions instead of crashes: every error path (missing file, malformed header, short read, wrong mode for the extractor) raises a typed OSError / ValueError / FileNotFoundError / ImportError with a message that names the field at fault.
  • No silent type coercion: the wire dtype is preserved by default; explicit *_volts / *_radians methods do the physical scaling when you want it. No implicit astype(float64) surprise on a 4 GB array.
  • Thread safety: each File owns its own backend; sharing a single File across Python threads is not supported (the file cursor isn't synchronised). Open one File per thread for parallel reads — they don't compete for any internal state.
  • No mmap: deliberate. Memory-mapped files turn I/O errors into SIGBUS (segfault) instead of Python exceptions, which is unsafe when reading user-supplied paths in a long-running lab process.

Examples

See assets/basic_usage.py for a runnable end-to-end script.

Building from source

git clone https://github.com/invisensing-io/python-lib.git
cd python-lib
pip install maturin
maturin develop --release        # local dev install
maturin build  --release         # build a wheel for distribution

The Rust crate lives in src/lib.rs and the Python facade in python/invisensing/.

License

MIT — © 2024-2026 Invisensing. See LICENSE for the full text.

Metadata

Release files for invisensing 1.8.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 invisensing 1.8.0
File Size Uploaded Provenance Actions
invisensing-1.8.0.tar.gz 331.7 kB With provenance Details for invisensing-1.8.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for invisensing 1.8.0
File Actions
invisensing-1.8.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for invisensing-1.8.0-cp314-cp314-win_amd64.whl
invisensing-1.8.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ x86-64 Details for invisensing-1.8.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
invisensing-1.8.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.17+ ARM64 Details for invisensing-1.8.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
invisensing-1.8.0-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for invisensing-1.8.0-cp314-cp314-macosx_11_0_arm64.whl
invisensing-1.8.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for invisensing-1.8.0-cp313-cp313-win_amd64.whl
invisensing-1.8.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ x86-64 Details for invisensing-1.8.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
invisensing-1.8.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.17+ ARM64 Details for invisensing-1.8.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
invisensing-1.8.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for invisensing-1.8.0-cp313-cp313-macosx_11_0_arm64.whl
invisensing-1.8.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for invisensing-1.8.0-cp312-cp312-win_amd64.whl
invisensing-1.8.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ x86-64 Details for invisensing-1.8.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
invisensing-1.8.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.17+ ARM64 Details for invisensing-1.8.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
invisensing-1.8.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for invisensing-1.8.0-cp312-cp312-macosx_11_0_arm64.whl
invisensing-1.8.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for invisensing-1.8.0-cp311-cp311-win_amd64.whl
invisensing-1.8.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details for invisensing-1.8.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
invisensing-1.8.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ ARM64 Details for invisensing-1.8.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
invisensing-1.8.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for invisensing-1.8.0-cp311-cp311-macosx_11_0_arm64.whl
invisensing-1.8.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for invisensing-1.8.0-cp310-cp310-win_amd64.whl
invisensing-1.8.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details for invisensing-1.8.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
invisensing-1.8.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ ARM64 Details for invisensing-1.8.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
invisensing-1.8.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for invisensing-1.8.0-cp310-cp310-macosx_11_0_arm64.whl
invisensing-1.8.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for invisensing-1.8.0-cp39-cp39-win_amd64.whl
invisensing-1.8.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details for invisensing-1.8.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
invisensing-1.8.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ ARM64 Details for invisensing-1.8.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
invisensing-1.8.0-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details for invisensing-1.8.0-cp39-cp39-macosx_11_0_arm64.whl

Total release size: 9.5 MB

Release files / invisensing-1.8.0.tar.gz

Download URL invisensing-1.8.0.tar.gz
Size 331.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bd8cf20ddd425e356d4b2ea599ef58c7d32ae2cd097bccc911c8e916ee10775d
BLAKE2b-256 checksum
How to use checksums
27683e406b2c79c62a0fb8e7e617bdd3bdf6ccd26122aae51151e25b9d306d38
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp314-cp314-win_amd64.whl

Download URL invisensing-1.8.0-cp314-cp314-win_amd64.whl
Size 336.2 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
9a0b51b6b89af7912913b650daae22dc6920973cf0f3b9b9468227863648440f
BLAKE2b-256 checksum
How to use checksums
e777235b0e49a48678745ef17fc97613c2f8e24f485f8e362b0033c5a8a37d54
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL invisensing-1.8.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 410.8 kB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
5de2060ddd4fa88a9a1027d8e42167d747870d176bcb659aef9f773d736d6b69
BLAKE2b-256 checksum
How to use checksums
4317ac48469b82ae8da410cc2db5981df6857e3ec94c4fbba2dd1b972993abe6
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL invisensing-1.8.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 395.4 kB
Tags CPython 3.14 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
3ec19ccefe3db04dbf11ee4b74b1b2d930347baed7f2702f4842c91050e149c3
BLAKE2b-256 checksum
How to use checksums
72d7aa173915fcdd6f9cdfe1f510274927d30a35e3b4b554d6228ffb1fd06b48
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp314-cp314-macosx_11_0_arm64.whl

Download URL invisensing-1.8.0-cp314-cp314-macosx_11_0_arm64.whl
Size 380.8 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3dd54a5ed664ccaa77b7702ef45c8faca6c14365adae7d67f0db8d4b7f3bcd90
BLAKE2b-256 checksum
How to use checksums
e10b173f9fd9022f7216a7a2be9a7583b1be8b0047f04bf3144ba58dfec76e2c
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp313-cp313-win_amd64.whl

Download URL invisensing-1.8.0-cp313-cp313-win_amd64.whl
Size 335.8 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
c802d0e552c072917723eb6c4bcdae7683e2d601464ad1614b208c6e322fcb82
BLAKE2b-256 checksum
How to use checksums
1772a880c304fb1492aa0abd424d606e6603264f441ca4377355cbbc9f59bd36
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL invisensing-1.8.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 410.3 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
078c51d9bff80df09f96e9b74150300d185f6bf89ec0e066221775cce3226ad9
BLAKE2b-256 checksum
How to use checksums
fa888bd7483dcf9302586583894b01e1168c658e2e0572fedb2d8c76975c75c6
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL invisensing-1.8.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 395.6 kB
Tags CPython 3.13 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
f6026128ef570a01057b2455aec9c96066dcc2b69e1ab417de568616598425a2
BLAKE2b-256 checksum
How to use checksums
a2751e376073b5940d3b5dfd013ad046301293c39f30e8b8307c53a36bd63159
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL invisensing-1.8.0-cp313-cp313-macosx_11_0_arm64.whl
Size 380.4 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b1e7b392e32ebc14a06d4e8e4e4274b5a565d59ec9a2cd771be4f7e3d035af4e
BLAKE2b-256 checksum
How to use checksums
eeab0f402638f7b456ffd76d2b1054d13f391cb2fe3e9f49eaf5061e41dea0e6
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp312-cp312-win_amd64.whl

Download URL invisensing-1.8.0-cp312-cp312-win_amd64.whl
Size 336.1 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
f4ed631df7dbc8d3aec38d4d9b5a2c0385d272de9b5a45aad73addee80bcdec5
BLAKE2b-256 checksum
How to use checksums
54d35c499d5fa40f4e9328cdec1a2e236d0223d41423471305eccd8ded15bea1
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL invisensing-1.8.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 410.6 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
3602f0c3e4d36fc010f10c314a0561d09ce946fe25b6754fb857cd5c28f494b4
BLAKE2b-256 checksum
How to use checksums
9a9895ed713bbd5062c26bb240c4c6083c19e08e61d7921c0243369490a7661c
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL invisensing-1.8.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 396.0 kB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
9fc793749691cb34ca03a93e77b72c65fc4aef0f0227aaa4a62d177434a3a661
BLAKE2b-256 checksum
How to use checksums
ea45e79d901e6f25d08e06ac0557c3ff22b49370025eb935ae5397693cc237ac
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL invisensing-1.8.0-cp312-cp312-macosx_11_0_arm64.whl
Size 380.9 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
42abf999db8411bfa13309b628e0cfc084275cfa28345e4cb2835d73aac732a6
BLAKE2b-256 checksum
How to use checksums
b9d86981a838c90f48b36952e9d1ffbed05b267977ef6d09fc7a256176b5f599
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp311-cp311-win_amd64.whl

Download URL invisensing-1.8.0-cp311-cp311-win_amd64.whl
Size 335.7 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
c89f8ae94e5113385d5e4128323161816bcf483f0e21de6cd24a120eab578921
BLAKE2b-256 checksum
How to use checksums
97e314dfe1bd8b2c9e889b858e49c1275083b59935d93da2964e0dbd6ba62dba
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL invisensing-1.8.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 411.2 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
af05f4e28324c2294ac1c82d2185d949d55aa9aa490426fa2208718784d1684a
BLAKE2b-256 checksum
How to use checksums
defa90d3680ca527ceb976677bcc3cf447835ef3efcb2f2d7c920ca9fbe94101
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL invisensing-1.8.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 397.1 kB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
8907eed53a6041a13186b3d360e553ee2e1bb3141d72e5dd7333a7d38577d521
BLAKE2b-256 checksum
How to use checksums
ea87745096445229b819d4cecbe5db8384f784c7b78369aaad9244f52ec9eb72
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL invisensing-1.8.0-cp311-cp311-macosx_11_0_arm64.whl
Size 382.7 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
afbaa1e79b47139b3be58adf26384c5770f833e484894ebbeff112290256a380
BLAKE2b-256 checksum
How to use checksums
56f5370bf22e0faf2a4a3ddf34cc7556e60ce733e953e16825fba8c8fd59667e
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp310-cp310-win_amd64.whl

Download URL invisensing-1.8.0-cp310-cp310-win_amd64.whl
Size 335.6 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
9fad2c75ece7f20262ed85d8599053a52889be0e814051cb99dc246a08400d2d
BLAKE2b-256 checksum
How to use checksums
030b9ff949f9b0752f731bd11530443424f86c26ccd1aa3f9ff6a4340a503ec0
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL invisensing-1.8.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 411.1 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
5065910a60951679f1a4fa16f1701e73dcc379035bdbc8bd167006b940380b65
BLAKE2b-256 checksum
How to use checksums
4da4f0441e49f33dd67fa14f17ca622712dd444d93d6aa106d9f2a7dc8e2c136
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL invisensing-1.8.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 397.1 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
0dbfff2e36390522212f56670abe1c5e450d9441390210308e291f49bbfcd29a
BLAKE2b-256 checksum
How to use checksums
b01b5015a771ec32f0f81ab084e62eff84ebc174cd67d132409e663ebf2ff977
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL invisensing-1.8.0-cp310-cp310-macosx_11_0_arm64.whl
Size 382.3 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7287898938beb032e91b66d6d9c939d42e60a1a7f179993c2cff7b3df5a19711
BLAKE2b-256 checksum
How to use checksums
7050b6c9862d92f80d4a995b2002b0ce83b0e4726424df9632c5e0cb9d050b89
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp39-cp39-win_amd64.whl

Download URL invisensing-1.8.0-cp39-cp39-win_amd64.whl
Size 336.1 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
96be931a45cfae20c2f70da5a12cd05c9a608fb91318f2d2a67530c7eab0bba9
BLAKE2b-256 checksum
How to use checksums
778377ffbcf6567a9b614df14c69342c25176ee675441f520a96ded315e1066c
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL invisensing-1.8.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 411.7 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
7942de65a27125bbd1e8a94bbd39ff6a7e37179425d9c2efd22243fddcd73bbd
BLAKE2b-256 checksum
How to use checksums
eaf5c55d077337d9a2732c9ed5129554eb836619d0a68db0af8730bb6fe4b63d
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL invisensing-1.8.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 397.7 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
b17903d85fd9ed1169684bc24bab1553469d791d1f41932a52ac4f8cc8a00fb2
BLAKE2b-256 checksum
How to use checksums
b5540170c74c53de63c213d56113dff72aca9dd85886e8a0edd4b815b6d6f1f9
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 24, 2026.

Transparency log

Release files / invisensing-1.8.0-cp39-cp39-macosx_11_0_arm64.whl

Download URL invisensing-1.8.0-cp39-cp39-macosx_11_0_arm64.whl
Size 382.9 kB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8cda06c5e51624aca8a5521892b6b95b13cb76e136954d659b5181159f56d9f7
BLAKE2b-256 checksum
How to use checksums
f34ca0a9120992ae6fcdd7674e088871b1113a0c6b194bdf45bff5341582d4e6
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 24, 2026.

Transparency log

Security for invisensing 1.8.0

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

All 25 files in this release have been uploaded with provenance metadata.

Select from 25 files

Attestation for invisensing-1.8.0.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 24, 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