Skip to main content

pyvisa-rs

A PyVISA backend powered by rsvisa-rs, a Rust port of pyvisa-py. Select it from PyVISA with the @rs library spec.

Install

pip install pyvisa-rs

To build from a clone of this repo, with an activated virtualenv:

cd pyvisa-rs
maturin develop

This builds the Rust extension and installs the pyvisa-rs package into the current environment. PyVISA discovers it automatically via its pyvisa_* package scan.

Usage

import pyvisa

rm = pyvisa.ResourceManager("@rs")

print(rm.list_resources())

with rm.open_resource("TCPIP::192.168.1.10::INSTR") as instr:
    instr.timeout = 5000
    print(instr.query("*IDN?"))

That's it — once "@rs" is passed to ResourceManager, the rest of the PyVISA API works exactly as it does against any other backend.

Backends supported

The Rust backend mirrors pyvisa-py's transports:

  • TCPIP::...::INSTR (VXI-11)
  • TCPIP::...::SOCKET
  • TCPIP::...::HISLIP
  • USB::...::INSTR / USB::...::RAW
  • ASRL...::INSTR (serial)

USB

USB uses libusb, which pyvisa-rs gets from its libusb-package dependency (the same libusb pyvisa-py's usb-full extra installs). Without that package, a system libusb is used instead.

As with pyvisa-py, on Windows each USB instrument needs a generic WinUSB driver, for example installed with Zadig. Instruments bound to a vendor USBTMC driver (NI-VISA, Keysight IO Libraries) aren't reachable through libusb.

Comparing against pyvisa-py

examples/discovery.py runs list_resources() through both backends and diffs the results:

uv run --with pyvisa --with pyserial --with pyusb \
       --with libusb-package --with zeroconf --with pyvisa-py \
       examples/discovery.py

Pass --reinstall-package pyvisa-rs after editing Rust sources — uv's wheel cache does not invalidate on Rust source changes.

License

Licensed under the Apache License, Version 2.0. pyvisa-rs is built on a port of pyvisa-py (MIT License); see the LICENSE, LICENSE-pyvisa-py and NOTICE files shipped with this package.

Metadata

Release files for pyvisa-rs 0.3.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 pyvisa-rs 0.3.0
File Size Uploaded Provenance Actions
pyvisa_rs-0.3.0.tar.gz 69.1 kB With provenance Details for pyvisa_rs-0.3.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pyvisa-rs 0.3.0
File Interpreter ABI Platform Actions
pyvisa_rs-0.3.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for pyvisa_rs-0.3.0-cp311-abi3-win_amd64.whl
pyvisa_rs-0.3.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.11 abi3 Linux glibc 2.17+ x86-64 Details for pyvisa_rs-0.3.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pyvisa_rs-0.3.0-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for pyvisa_rs-0.3.0-cp311-abi3-macosx_11_0_arm64.whl

Total release size: 3.9 MB

Release files / pyvisa_rs-0.3.0.tar.gz

Download URL pyvisa_rs-0.3.0.tar.gz
Size 69.1 kB
Tags Source
SHA-256 checksum
How to use checksums
666e05917e1cb3fd18abf006ebba04c1a8ffc8076ffd1f33775b03c0c9d4c2fa
BLAKE2b-256 checksum
How to use checksums
e623e71815533311f2ea977244398a22489ed28320db4e64ea25e4076204fdc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 / pyvisa_rs-0.3.0-cp311-abi3-win_amd64.whl

Download URL pyvisa_rs-0.3.0-cp311-abi3-win_amd64.whl
Size 1.1 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d96c49f19d3c0f939fd9de2ef5d0bf17a01989f651c069b193c394ef53455e8a
BLAKE2b-256 checksum
How to use checksums
920ee8c59bbeccd42a930eb4b9756a2249355eaabab2d1938ca4ee57e65f84f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 / pyvisa_rs-0.3.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pyvisa_rs-0.3.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 1.4 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
684fca6dc709094f16c92b1c875c3dcd0c2b3e6f25fddeaba7bb929c414cbf72
BLAKE2b-256 checksum
How to use checksums
ff3412a335f96fce2d86a944e4f1c56b8cb6633b696d793354d972377e224e59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 / pyvisa_rs-0.3.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL pyvisa_rs-0.3.0-cp311-abi3-macosx_11_0_arm64.whl
Size 1.2 MB
Tags CPython 3.11 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
94fb63624cc87485d86d63dfc01bca581c77c34503a401c3df405d169e5ed4e2
BLAKE2b-256 checksum
How to use checksums
9e6f904fe07cdef20dea0a4a2ebe1bee90d6e68e6f08e8694243f19997b4dc68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 pyvisa-rs 0.3.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 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for pyvisa_rs-0.3.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