skillfed

PyVISA

Python VISA bindings for GPIB, RS232, TCPIP and USB instruments

pyvisa v1.16.2 1.1M downloads/30d#4,315 on PyPI948
Permissive license The MIT License Copyright (c) 2005-2024 PyVISA 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 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

PyVISA provides Python bindings to VISA libraries for controlling measurement instruments and test equipment over GPIB, RS232, Ethernet, and USB interfaces.

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

pip

pip install pyvisa

uv

uv add pyvisa

poetry

poetry add pyvisa

Installing PyVISA

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.

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()

Requires a VISA library installed on the system (e.g., NI-VISA or Keysight-VISA); PyVISA is a wrapper that calls these shared libraries.

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 The MIT License Copyright (c) 2005-2024 PyVISA 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 1 — typing_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)

Evidence: pyvisa-1.16.2-py3-none-any.whl

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

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

Tags

VISA instrument control pythonGPIB USB RS232 measurement devicesinstrument communication protocoltest equipment automationlaboratory device controlvirtual instrument software architecturehardware interface abstraction
hardware-interfaceinstrument-controltest-automation

More Python Modules packages