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.2.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.2.0
File Size Uploaded Provenance Actions
pyvisa_rs-0.2.0.tar.gz 66.9 kB With provenance Details for pyvisa_rs-0.2.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pyvisa-rs 0.2.0
File Interpreter ABI Platform Actions
pyvisa_rs-0.2.0-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details for pyvisa_rs-0.2.0-cp311-abi3-win_amd64.whl
pyvisa_rs-0.2.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.2.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
pyvisa_rs-0.2.0-cp311-abi3-macosx_11_0_arm64.whl CPython 3.11 abi3 macOS 11.0+ ARM64 Details for pyvisa_rs-0.2.0-cp311-abi3-macosx_11_0_arm64.whl

Total release size: 3.8 MB

Release files / pyvisa_rs-0.2.0.tar.gz

Download URL pyvisa_rs-0.2.0.tar.gz
Size 66.9 kB
Tags Source
SHA-256 checksum
How to use checksums
eaea653e1d30c9ec4c7ef48e15a7c6ab40046f504482bec3f84db9b8ea8240e5
BLAKE2b-256 checksum
How to use checksums
5a604db24935960b7a2b7d01eb89d8913bd02fbed962b0837b8c5de66f61a0e0
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 16, 2026.

Transparency log

Release files / pyvisa_rs-0.2.0-cp311-abi3-win_amd64.whl

Download URL pyvisa_rs-0.2.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
4b8eaffa5e264318423e6d7c9a0b8ecf95a3928b2452b8d2b801ba02c40057af
BLAKE2b-256 checksum
How to use checksums
bc885ac7b78d270889febd3cf67ef507790d569548600c3839627debc84349ee
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 16, 2026.

Transparency log

Release files / pyvisa_rs-0.2.0-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL pyvisa_rs-0.2.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
7304276d6750a6c3293f8d27df40bf7a7b99bd030cfd56be4ee2df25f6def2ff
BLAKE2b-256 checksum
How to use checksums
5504f9cf19f30e557bfed1a75807eb3cca67041237e3b3886cd4eb5951709163
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 16, 2026.

Transparency log

Release files / pyvisa_rs-0.2.0-cp311-abi3-macosx_11_0_arm64.whl

Download URL pyvisa_rs-0.2.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
1c4313d8166b0d00d48c952a9dc90ee319e35fe8d9acb3508a0efae3de998faf
BLAKE2b-256 checksum
How to use checksums
a7873987111633fd0c97f879a0079f9dc66b7a4cb71cffcbe96c572ea5f8166d
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 16, 2026.

Transparency log

Security for pyvisa-rs 0.2.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.2.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 16, 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