RepositoryPython
nominal-io

nominal-io/instro

An open-source library for hardware test instrumentation

735stars
36forks
122issues
3views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: test-and-measurement

#1 Repository of the week

1
TINIX TRENDING·Topic: scpi

#1 Repository of the week

1
TINIX TRENDING·Topic: instrument-control

#1 Repository of the week

⟢ instro

Python library for talking to test-and-measurement instruments (power supplies, multimeters, electronic loads, DAQs, oscilloscopes, PLCs) from a unified, typed API.

PyPI Downloads Docs SDK Community

Quickstart

Talk to a simulated PSU. No hardware required.

# Terminal 1: start the in-process SCPI sim server:
uv run python -m instro.psu.scpi_sim_server
# Terminal 2: run this:
from instro.psu import InstroPSU
from instro.psu.drivers import SimulatedPSU

with InstroPSU(
    name="my-psu",
    driver=SimulatedPSU("TCPIP0::127.0.0.1::5025::SOCKET"),
    num_channels=2,
) as psu:
    psu.set_voltage(3.3, channel=1)
    psu.output_enable(True, channel=1)
    print(psu.get_voltage(channel=1))

That's the whole loop: construct, open(), configure, measure, close(). When you want to capture the data, attach a publisher to stream it to a file, a custom destination, or Nominal. For the full walkthrough (including the background polling daemon and publishers), see the official documentation.

Installation

pip install instro

Requires Python 3.10 to 3.13.

To work on instro itself, clone and install with uv:

git clone https://github.com/nominal-io/instro.git
cd instro
uv sync --extra all

This creates a virtual environment with the core library, all optional vendor drivers, and dev dependencies. Run with uv run python your_script.py or activate via source .venv/bin/activate (Unix) / .venv\Scripts\activate (Windows).

For the full toolchain needed to run just check and just test (including the native Rust/CMake/LLVM dependencies that just test requires), see Prerequisites in the contributing guide.

Optional Extras

Instro drivers that require a separate vendor sdk installation ship as separate packages so the heavy dependencies stay optional, and community-contributed drivers ship in their own package. Install only what you need:

ExtraPulls in Package
instro[nidaq]NI-DAQmx (Linux + Windows)PyPI
instro[labjack]LabJack LJMPyPI
instro[mccdaq]MCC UL (Windows-only)PyPI
instro[aardvark]Total Phase Aardvark (I2C)PyPI
instro[ethernetip]EtherNet/IP support for Allen-Bradley PLCsPyPI
instro[contrib]Community-contributed hardware driversPyPI
instro[unstable]In-development features whose API isn't settledPyPI
instro[all]Everything above—

Pass the extra package name in brackets to pip install:

pip install "instro[labjack]"
pip install "instro[nidaq,contrib]"

Supported devices

CategoryClassVendors
Power SupplyInstroPSUB&K Precision (9115, 914X), Keysight (E36100-series), Rigol (DP800-series), Siglent (SPD3303), TDK Lambda (Genesys), simulated
MultimeterInstroDMMAgilent 34401A, Keithley 2400
Electronic LoadInstroELoadB&K Precision (85xxB-series)
OscilloscopeInstroScopeKeysight (1200X-series), Tektronix (2-series), Siglent (SDS1000X-E)
DAQInstroDAQKeysight 34980A, NI-DAQmx, LabJack T-series, MCC USB-series
I2CI2CInterfaceTotal Phase Aardvark
ModbusModbusDeviceAny Modbus TCP / RTU device
EtherNet/IPEtherNetIPDeviceAllen-Bradley / CompactLogix-class PLCs

Don't see your vendor? Drivers the maintainers can't test directly land in instro-contrib. Install them with instro[contrib]. See CONTRIBUTING.md for the verification expectations.

Contributing

  • Humans: see CONTRIBUTING.md for development setup, PR conventions, and where different kinds of contributions belong in the workspace.
  • AI coding tools (Claude Code, Cursor, Codex, Copilot Workspace, …): see AGENTS.md for codebase landmarks, conventions, and common workflows. The repo ships reusable skills and subagents for both Claude Code (.claude/) and Codex CLI (.agents/, .codex/). The existing skills are add-instrument-driver which scaffolds a new vendor driver from a programming manual/API, and validate-driver-hardware which smoke-tests an authored driver against the real instrument and self-corrects it. See Repo skills and subagents.

License

Apache License 2.0. Third-party dependency notices and proprietary vendor runtime requirements are documented in NOTICE.

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
Scaxlibur/WaveBench

面向电子设计调试的轻量级 Python 自动测量台,支持 VISA/SCPI 仪器控制与多仪器实验编排。Lightweight Python measurement bench for electronics debugging, VISA/SCPI instrument control, and multi-instrument automation.

77
Oct 26, 2026
RepositoryC++
bve/OpenOSC

Open-source oscilloscope, multimeter and signal generator firmware for ZT703S / ZT706S handheld scopemeters

739
Dec 2, 2026
RepositoryTypeScript
eez-open/modular-psu

EEZ Bench Box 3 (BB3) Modular T&M chassis

399
Oct 11, 2026
RepositoryC++
knarfS/smuview

SmuView is a GUI for sigrok that supports power supplies, electronic loads and all sorts of measurement devices like multimeters, LCR meters and so on.

166
Nov 23, 2026
RepositoryVerilog
drandyhaas/Haasoscope

Docs, design, firmware, and software for the Haasoscope

166
Jun 6, 2026
RepositoryC++
morgendagen/riden-dongle

An alternative firmware for the Riden WiFi module that provides Modbus TCP and SCPI support as well as a web interface.

62
Nov 15, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryTypeScript
firecrawl/firecrawl

Firecrawl is the knowledge infrastructure to make your agents smarter. It connects your agents to the web, and to Alexandria, our library of everything else.

215.1k
Dec 2, 2026
RepositoryJavaScript
trekhleb/javascript-algorithms

📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings

196.8k
Jul 26, 2026