skillfed

PyVISA-py

Pure Python implementation of a VISA library.

pyvisa-py v0.8.1 849.1K downloads/30d#4,909 on PyPI358
Permissive license The MIT License Copyright (c) 2014 PyVISA-py Authors and contributors. See AUTHORS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated… (full text in the JSON record) Active released

What it is and what it does

PyVISA-py implements the VISA standard—a widely used protocol for controlling laboratory instruments—entirely in Python, eliminating the need to install proprietary VISA libraries from vendors like National Instruments or Keysight. It acts as a backend to the pyvisa package, translating high-level instrument commands into low-level communication over Serial, USB, GPIB, and Ethernet interfaces. The package uses well-maintained cross-platform Python libraries (PySerial, PyUSB, etc.) to handle the actual I/O, making it portable across Windows, macOS, and Linux.

Typical use is in measurement automation, data acquisition, and laboratory control scripts where you need to query or command instruments without vendor lock-in. You install it, tell pyvisa to use the '@py' backend, and then use standard VISA resource names to open connections to instruments. Optional dependencies unlock additional features like GPIB support, device discovery, and proprietary protocols.

Use it for:

  • Automate multi-instrument measurement sequences in a lab without installing vendor VISA libraries.
  • Query and control USB or serial instruments from a Python script on Linux, macOS, or Windows.
  • Discover TCPIP instruments across network interfaces using psutil integration.
  • Develop portable instrument control code that runs on multiple operating systems without recompilation.
  • Integrate laboratory equipment into data acquisition pipelines using standard VISA resource addressing.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

PyVISA-py is a pure Python backend for the VISA standard that enables communication with laboratory instruments over Serial, USB, GPIB, and Ethernet without requiring proprietary VISA libraries.

Yes, if you need to control laboratory instruments via VISA and want to avoid proprietary library dependencies. The package is actively maintained, has low install friction, carries a permissive MIT license, and supports current Python versions. Install it as a pyvisa backend when vendor VISA libraries are unavailable or when cross-platform portability is required. No known vulnerabilities as of the fact sheet date.

Install

pyvisa-py on PyPI

pip

pip install pyvisa-py

uv

uv add pyvisa-py

poetry

poetry add pyvisa-py

Installing PyVISA-py

Before you install

Low friction: pure Python wheel with only pyvisa and typing_extensions as runtime dependencies. Actively maintained with recent commits and Beta stability status. Supports Python 3.10–3.13 across macOS, Windows, and Linux.

License in practice

MIT license permits unrestricted use, modification, and distribution in both open and closed projects with minimal obligations—only attribution and license inclusion required.

Quickstart

pip install pyvisa-py

import pyvisa
rm = pyvisa.ResourceManager('@py')
inst = rm.open_resource('GPIB0::1::INSTR')
response = inst.query('*IDN?')

Requires pyvisa to be installed; optional platform-specific dependencies (PySerial, PyUSB, linux-gpib, gpib-ctypes, psutil, zeroconf, pyvicp) needed for specific instrument types or discovery features.

Verify before relying

  • Extent of VISA method coverage beyond message-based communication (e.g., raw socket, service request, event handling).
  • Performance characteristics compared to native VISA libraries for high-throughput or latency-sensitive applications.
  • Completeness of cross-platform GPIB support, particularly on Windows with gpib-ctypes.

Package facts

License The MIT License Copyright (c) 2014 PyVISA-py Authors and contributors. See AUTHORS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated… (full text in the JSON record) (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 2 — pyvisa, typing_extensions
Maintenance actively maintained — 344 days since the last release
Last repo commit
First released
Downloads 849,120/month — #4,909 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pyvisa_py-0.8.1-py3-none-any.whl

Keywords: VISA, GPIB, USB, serial, RS232, measurement, acquisition

Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Scientific/Engineering :: Interface Engine/Protocol TranslatorTopic :: Software Development :: Libraries :: Python Modules

Tags

VISA backend pure pythoninstrument control serial USB GPIBlaboratory measurement acquisitionvirtual instrument software architecturecross-platform instrument communicationGPIB USB serial ethernet instruments
instrument-controlvisa-backendlab-automation

More Python Modules packages