PyVISA
Python VISA bindings for GPIB, RS232, TCPIP and USB instruments
Decision gist · record as of 2026-08-14
Yes. PyVISA is a mature, actively maintained library (Production/Stable since 2008, recent commits, 948 GitHub stars) with minimal dependencies and no known vulnerabilities. It directly solves a real problem—instrument control—for a well-defined audience. Install it if you need to automate laboratory equipment; skip it if you have no instruments to control or use vendor-specific SDKs instead.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a VISA library installed on the system (e.g., NI-VISA or Keysight-VISA); PyVISA is a wrapper that calls these shared libraries.
- Low friction installation with a single lightweight dependency (typing_extensions).
- The package is actively maintained with recent commits and has been stable since its 2008 inception, now in Production/Stable status.
License · maintenance · safety
permissive license (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
last release 2026-02-27 (168 days) · last repo commit 2026-08-10 · 948 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,132,178 downloads/mo, #4,315 on PyPI
Alternatives
Verify before relying
pip install pyvisa
import pyvisa
rm = pyvisa.ResourceManager()
instruments = rm.list_resources()
my_instrument = rm.open_resource(instruments[0])
response = my_instrument.query('*IDN?')
my_instrument.close()- Whether PyVISA-Py (the pure-Python VISA implementation mentioned in the description) is automatically available or requires separate installation.
- Specific VISA library versions known to work reliably with PyVISA 1.16.2 beyond the tested NI-VISA 17.5 and Keysight-VISA mentioned.
What it is and what it does
PyVISA is a Python wrapper around the VISA (Virtual Instrument Software Architecture) standard, which abstracts communication with laboratory instruments across multiple protocols and physical interfaces. Rather than writing protocol-specific code for each instrument type and bus system, developers use PyVISA's unified API to query and control devices connected via GPIB, RS232, Ethernet, or USB. The package acts as a bridge between Python and vendor-supplied VISA libraries (such as NI-VISA), translating high-level Python calls into the appropriate low-level VISA function calls.
The package is designed for scientists, engineers, and test automation developers who need to automate measurement equipment without learning each device's proprietary protocol. It handles the abstraction layer between Python's ease of use and the complexity of instrument communication, making it practical to write portable measurement scripts that work across different hardware setups.
Use it for
- Automate data acquisition from oscilloscopes, multimeters, and spectrum analyzers in a laboratory environment.
- Build test automation scripts for production line quality assurance that communicate with multiple instruments over different bus types.
- Write portable measurement applications that can work with different vendor instruments by swapping only the VISA library backend.
- Integrate instrument control into data analysis pipelines where Python handles both communication and numerical processing.
- Prototype instrument control logic interactively in Jupyter notebooks before deploying to production test systems.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
PyVISA is a mature, actively maintained library (Production/Stable since 2008, recent commits, 948 GitHub stars) with minimal dependencies and no known vulnerabilities. It directly solves a real problem—instrument control—for a well-defined audience. Install it if you need to automate laboratory equipment; skip it if you have no instruments to control or use vendor-specific SDKs instead.
Install
pyvisa on PyPI
Before you install
Low friction installation with a single lightweight dependency (typing_extensions). The package is actively maintained with recent commits and has been stable since its 2008 inception, now in Production/Stable status.
Requires a VISA library installed on the system (e.g., NI-VISA or Keysight-VISA); PyVISA is a wrapper that calls these shared libraries.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install pyvisa
import pyvisa
rm = pyvisa.ResourceManager()
instruments = rm.list_resources()
my_instrument = rm.open_resource(instruments[0])
response = my_instrument.query('*IDN?')
my_instrument.close()
Verify before relying
- Whether PyVISA-Py (the pure-Python VISA implementation mentioned in the description) is automatically available or requires separate installation.
- Specific VISA library versions known to work reliably with PyVISA 1.16.2 beyond the tested NI-VISA 17.5 and Keysight-VISA mentioned.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagetyping_extensions |
| Maintenance | Actively maintained 168 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,132,178 / month, #4,315 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/Engineering :: Interface Engine/Protocol TranslatorTopic :: Software Development :: Libraries :: Python Modules |
Evidence: pyvisa-1.16.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “GPIB USB RS232 measurement devices”
- PyVISAPyVISA provides Python bindings to VISA libraries for controlling…
- PyVISA-simPyVISA-sim provides a simulated VISA backend for PyVISA that lets you…
- PyVISA-pyPyVISA-py is a pure Python backend for the VISA standard that enables…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also MultiPyVu · PyVISA-py · RsInstrument · PyVISA-sim · zhinst-toolkit · pyghmi · zhinst-core · pyftdi · tdl-xoa-driver · brainstem