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.7.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.7.0
File Size Uploaded Provenance Actions
invisensing-1.7.0.tar.gz 327.6 kB With provenance Details for invisensing-1.7.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for invisensing 1.7.0
File Actions
invisensing-1.7.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for invisensing-1.7.0-cp314-cp314-win_amd64.whl
invisensing-1.7.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.7.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
invisensing-1.7.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.7.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
invisensing-1.7.0-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for invisensing-1.7.0-cp314-cp314-macosx_11_0_arm64.whl
invisensing-1.7.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for invisensing-1.7.0-cp313-cp313-win_amd64.whl
invisensing-1.7.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.7.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
invisensing-1.7.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.7.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
invisensing-1.7.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for invisensing-1.7.0-cp313-cp313-macosx_11_0_arm64.whl
invisensing-1.7.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for invisensing-1.7.0-cp312-cp312-win_amd64.whl
invisensing-1.7.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.7.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
invisensing-1.7.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.7.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
invisensing-1.7.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for invisensing-1.7.0-cp312-cp312-macosx_11_0_arm64.whl
invisensing-1.7.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for invisensing-1.7.0-cp311-cp311-win_amd64.whl
invisensing-1.7.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.7.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
invisensing-1.7.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.7.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
invisensing-1.7.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for invisensing-1.7.0-cp311-cp311-macosx_11_0_arm64.whl
invisensing-1.7.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for invisensing-1.7.0-cp310-cp310-win_amd64.whl
invisensing-1.7.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.7.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
invisensing-1.7.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.7.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
invisensing-1.7.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for invisensing-1.7.0-cp310-cp310-macosx_11_0_arm64.whl
invisensing-1.7.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for invisensing-1.7.0-cp39-cp39-win_amd64.whl
invisensing-1.7.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.7.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
invisensing-1.7.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.7.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
invisensing-1.7.0-cp39-cp39-macosx_11_0_arm64.whl CPython 3.9 CPython 3.9 macOS 11.0+ ARM64 Details for invisensing-1.7.0-cp39-cp39-macosx_11_0_arm64.whl

Total release size: 9.4 MB

Release files / invisensing-1.7.0.tar.gz

Download URL invisensing-1.7.0.tar.gz
Size 327.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4993935231578ffb59760cf39c82db115e9c9076d9d1683780875543764124c4
BLAKE2b-256 checksum
How to use checksums
6f8e13296749db34103a7bb5ef3adbca9eea8e7ef6ef131c50f2238797454f57
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp314-cp314-win_amd64.whl
Size 332.1 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
f1481b8bd1867b3d35fdc3168707b3af3d3a429ccb9cbe5d9db2bb47353d2adc
BLAKE2b-256 checksum
How to use checksums
da1f87157e3c2c28e6491c1bf040bcf264e8763bac536fd06e795950abb7154b
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 408.6 kB
Tags CPython 3.14 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
355a7359880e926277ce3a2741eba7a3f2ae5cfa1de7e7910cc4bfd6e2000fe8
BLAKE2b-256 checksum
How to use checksums
d12f0a719a3eff36501089eb03c849b4e75f237b31985f9a51b9292de2f0c648
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 393.3 kB
Tags CPython 3.14 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
cb83df465a725428ce327c32c13d106e3b48a58500c429ce739204e6a48b7336
BLAKE2b-256 checksum
How to use checksums
3dd10824a7734f793d9c0770469f4b65dff571bb7aedfedeadc37add6df60283
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp314-cp314-macosx_11_0_arm64.whl
Size 377.6 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
fabc7eb1d289ea40a19a68157972c8af421241d7ef68d5b3c6e29ee1d2f58314
BLAKE2b-256 checksum
How to use checksums
00e2b448aba7b3c543f2c66b8a87b19980cec3c446ce690413139e081a650f65
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp313-cp313-win_amd64.whl
Size 331.7 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
29c5817382ecf823b7e2abcb46f01dc94196aa7a72ec51ebb23a2c7cd0a5fc83
BLAKE2b-256 checksum
How to use checksums
f898407895b78f0d8ed5becb1c2266baaa55a17d3d02d6cc135fc8759435b953
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 408.2 kB
Tags CPython 3.13 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
97741ff47268761b7885dfa995bcd91d53a292b23af971a123b28ece6e634c7d
BLAKE2b-256 checksum
How to use checksums
30be0bc9b1b0743f8f529f30dda2229b92a69a7e613a9d19cea9be8a0147bbf9
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 393.5 kB
Tags CPython 3.13 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
189fff1116e21d685324fb20872c87f5f0c737967d51f32fe709aa9f8672b7ec
BLAKE2b-256 checksum
How to use checksums
a3040ec85779404ae09220c490c52e665fb31065914575c63dc7fcebc24fbc6d
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp313-cp313-macosx_11_0_arm64.whl
Size 377.2 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
baf4d4f9aaea547e79842eafee58bc210561a955171144905cc78e514a6f7853
BLAKE2b-256 checksum
How to use checksums
199a470df135c140459eca0d1283cb5073034ed829d0a6eb2005c09da4bef8a5
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp312-cp312-win_amd64.whl
Size 332.0 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
d3c3db3542a2ae066cd88c78c6a16badf0391aef5d53fce6e38deee9602395c5
BLAKE2b-256 checksum
How to use checksums
738a48688b07f7ab1da2b9c6c68a23496fd6996a896525345a99412c97f20bd6
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 408.5 kB
Tags CPython 3.12 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
b32645071dba2b719407a6c843d3f567e657041ac73d8676f5bff30d2e708fb2
BLAKE2b-256 checksum
How to use checksums
5b01ba7d95cfbf80a002fa59106c0572b6f77daa3a5546ce41be659eef2a01d3
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 393.9 kB
Tags CPython 3.12 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
51409ab46842143b10eb46c4c3c873b9a0375ff94da6a5bc6a8646d81bd7e155
BLAKE2b-256 checksum
How to use checksums
70d36097c634379e3b45dd8568e669410f35215699eb7258fe289b85c888ad79
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp312-cp312-macosx_11_0_arm64.whl
Size 377.7 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4f7db15461c4331e460f0dc83293538fbf1eb9d6ae37a754ff5d1c16d54cb9aa
BLAKE2b-256 checksum
How to use checksums
bde3f0b8e103fe8421d9c2eafe41e7038463e6093da4ce14000ed99a9e3c7544
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp311-cp311-win_amd64.whl
Size 331.4 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
503d2f500cdf807510f77723a60646b536c9e08e934c24bccc2c8377eb541c62
BLAKE2b-256 checksum
How to use checksums
47e71c01105e4e10eb74829aa96b6ebaf4e567a924b6d1ee7c1d71365cc0ce2e
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 409.1 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
d58d97b42428d7dfb955a0c38f8885bf750be7f410ffe91ae09ae6f36fb847d0
BLAKE2b-256 checksum
How to use checksums
0a47c5311637ef9f0f5e0008e2069a55dd50d001b8b766d33f3b34a784b1cba3
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 395.0 kB
Tags CPython 3.11 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
c44f7d45792fae89b76cfb40ff7c19aa9d50cb57040e7c527baa2ce35b1e8fba
BLAKE2b-256 checksum
How to use checksums
5b4857ef7ec2990aa19d50203b9c76366c5ce2e7df7cf65a887be8d66557efac
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp311-cp311-macosx_11_0_arm64.whl
Size 379.7 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e6dbca5fb7f560db437cb4e32afde2bb6b2fc5ad758abee097ddd5f12e961b1f
BLAKE2b-256 checksum
How to use checksums
a3b7b03c823ef58332332575192fdaaf6faf4aca205da4e3ac14486389ff9e83
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp310-cp310-win_amd64.whl
Size 331.3 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
66c2c013077f7f2f24d44fabf1e11f6ab34378861978a9eec4f9b3ef83f78e1a
BLAKE2b-256 checksum
How to use checksums
6968c0bf613cbf884c1bfbebf90504a92964e5e12e41d4e6925e69498c575cba
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 408.9 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
97e19de2e6aa18dc2ecec9d77972a0db2b569a38c734c0a63bcd2845f0bc5c68
BLAKE2b-256 checksum
How to use checksums
f6dd88be2eba8f0fd0b7d30c79929d7e127a7689f57e2af1aba3f29b0c4e4243
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 395.0 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
78957530b19b519620b13002edfdf2363b4da54f7b8d48c655e795379822a61b
BLAKE2b-256 checksum
How to use checksums
e2be7d2d1a1c4d002248a4e0fad451b62d98061fc7bba8f7fc294fce3250a518
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp310-cp310-macosx_11_0_arm64.whl
Size 379.3 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c0544bb83deea7ee87c6ef8b69a63e1ba21734da82151f6d1bd13a912ca4c02c
BLAKE2b-256 checksum
How to use checksums
a00813f26ff4e3e6223da9a1c4e003b77bccf445467f3aa1eb89d95305120ad7
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp39-cp39-win_amd64.whl
Size 332.0 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
a6fb20a6b0a3f1e620bca6865eda22ff4243b92bb7c2407d3888c8bf4d257dd8
BLAKE2b-256 checksum
How to use checksums
87287eb656a37a9888d4107e7bfd9a036b64dd1311ce041ed92fc9638c0b067f
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 409.6 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
9e9813f109d957b9cd0f0797e2342bab9c4c5230338206a20dc5b03c2c9f3f4e
BLAKE2b-256 checksum
How to use checksums
646b330d88b0c76e01a58953a05bd99e1052be7ab799d7c537d810315dc9389a
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 395.6 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64
SHA-256 checksum
How to use checksums
408731686a4922a4ea3ffa82287e1c310f2f1a810700cb407e42b7453feb0e3f
BLAKE2b-256 checksum
How to use checksums
f0abb46d442e923e46419f60079d7c81b83cd60559fe8742f53eb3891d78bb13
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 18, 2026.

Transparency log

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

Download URL invisensing-1.7.0-cp39-cp39-macosx_11_0_arm64.whl
Size 380.0 kB
Tags CPython 3.9 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5f2e978a7f833214eeda923f969d12b68289c53f9493e6f4cbcee44bcd6a339e
BLAKE2b-256 checksum
How to use checksums
66728bc85cce9e9454d63ae52d6ebe54e06cccb1efd17aaa6fad55b894943b69
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 18, 2026.

Transparency log

Security for invisensing 1.7.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.7.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 18, 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