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

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)

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyvisa_rs-0.1.4.tar.gz (176.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pyvisa_rs-0.1.4-cp310-abi3-win_amd64.whl (1.2 MB view details)

Uploaded CPython 3.10+Windows x86-64

pyvisa_rs-0.1.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.8 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

pyvisa_rs-0.1.4-cp310-abi3-macosx_11_0_arm64.whl (1.2 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file pyvisa_rs-0.1.4.tar.gz.

File metadata

  • Download URL: pyvisa_rs-0.1.4.tar.gz
  • Upload date:
  • Size: 176.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyvisa_rs-0.1.4.tar.gz
Algorithm Hash digest
SHA256 aabd2dba277ac9e956ffa7fff3fa19e091d98bae89323c281301e0104e60a3d8
MD5 7c4e075c2b572dde72a2f1c584f6b716
BLAKE2b-256 b6a4f4314bd350ddb72232e310db88f47f7dc41e2d1db3a8cae4dd68713a1a43

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyvisa_rs-0.1.4.tar.gz:

Publisher: release.yml on nominal-io/rsvisa-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyvisa_rs-0.1.4-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: pyvisa_rs-0.1.4-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyvisa_rs-0.1.4-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 fb1b7a4219c7ecb25e4c4e396d567540975ace9b689d38fbc0b520041d4981ac
MD5 38c7c96bbcf683d1579dc649bbe6384f
BLAKE2b-256 27e4bc3709cf5d071cd69f3b75cb9ced8114858769a074479e90ee076d400804

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyvisa_rs-0.1.4-cp310-abi3-win_amd64.whl:

Publisher: release.yml on nominal-io/rsvisa-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyvisa_rs-0.1.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyvisa_rs-0.1.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 be92091a24902cd1a12d54c497636a24ae24866866d33e19f01b7a61962bf66a
MD5 90836caeb49e5347ad253c7edb55d951
BLAKE2b-256 500774d8d896f697b86ee5585cd9a6f109583dae34cf369d252242f8a50e4a9e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyvisa_rs-0.1.4-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on nominal-io/rsvisa-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyvisa_rs-0.1.4-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pyvisa_rs-0.1.4-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5262e7c9de50617792cf09635f97c7247f66e0fed02b21ddfd05c5ab140c7985
MD5 494555c7171d84079391a59d6fcf18e5
BLAKE2b-256 4a9045a734065302e2b1e39e75ddf8cffc4435b3cf2cd25c33ba71b2c9f6e2e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyvisa_rs-0.1.4-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on nominal-io/rsvisa-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page