phidget22
Phidget22 Python wrapper library
What it is and what it does
Phidget22 is the official Python wrapper around the native Phidget hardware control library, enabling Python applications to communicate with Phidget sensors, controllers, and interface boards over USB and other connections. The library ships with precompiled native binaries for Windows, Linux, and macOS, making installation straightforward for most users; however, some hardware types (particularly HID USB Phidgets on macOS) may require additional system-level setup. The package has no runtime Python dependencies, keeping your environment clean.
Typical use involves importing the library, discovering connected Phidget devices, and then reading sensor data or controlling outputs through the device API. The library is maintained actively and carries no known security vulnerabilities, making it a stable choice for projects that need to integrate Phidget hardware into Python applications.
Use it for:
- Read sensor data (temperature, humidity, motion, etc.) from Phidget devices in real-time monitoring or data-logging applications.
- Control Phidget output devices (relays, LEDs, motors) from Python scripts or applications.
- Build embedded systems or IoT prototypes that combine Phidget hardware with Python logic.
- Integrate Phidget devices into laboratory or scientific measurement setups.
- Automate hardware testing or calibration workflows using Phidget sensors and controllers.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Phidget22 is the official Python library for communicating with Phidget hardware devices, providing lightweight bindings to the native phidget22 library for sensor and controller interfacing.
Yes, if you are working with Phidget hardware. The library is the official, actively maintained binding for Python; it has low install friction, no runtime dependencies, permissive licensing, and zero known vulnerabilities. The main gotcha is platform-specific setup for certain hardware types on macOS, which is documented. For non-Phidget projects, it is not applicable.
Install
phidget22 on PyPI
pip
pip install phidget22uv
uv add phidget22poetry
poetry add phidget22Installing phidget22
Before you install
Installation is straightforward via pip with low friction; the package includes native libraries for Windows, Linux, and macOS. Last release was 128 days ago and maintenance status is active.
License in practice
Licensed under BSD-3-Clause (permissive), so you can use, modify, and distribute this library with minimal legal restrictions as long as you include the license notice.
Quickstart
pip install phidget22
import phidget22
# Connect to and interact with Phidget hardware devices
HID USB Phidgets on macOS require separate installation of macOS libraries or the Standalone Control Panel; other Phidget types (PHIDUSB, VINT) do not. Non-Windows/Linux/macOS systems require manual native library installation.
Verify before relying
- Specific Python version support (requires_python field is unspecified in metadata)
- Whether the package actively maintains compatibility with Python 2 (classifiers list it, but Python 2 is end-of-life)
Package facts
| License | BSD-3-Clause (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 128 days since the last release |
| First released | |
| Downloads | 613,846/month — #5,751 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: phidget22-1.25.20260408-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
hidProvides Python bindings to the hidapi library…
permissive · top 15,000 on PyPI
hidapiProvides a Python interface to HIDAPI, enabling…
unclear · top 5,000 on PyPI
spidevProvides Python bindings to interact with SPI…
permissive · top 15,000 on PyPI
libusbsioProvides a Python wrapper around NXP's…
permissive · top 15,000 on PyPI
brainstemProvides Python bindings to control and…
unclear · top 15,000 on PyPI
pyadi-iiopyadi-iio provides Python classes that wrap…
permissive · top 15,000 on PyPI
pyftdiPyFtdi provides a pure-Python user-space driver…
permissive · top 15,000 on PyPI
zigpyzigpy is a hardware-independent Zigbee protocol…
copyleft · top 15,000 on PyPI
pyusbPyUSB provides Python access to USB devices on…
permissive · top 5,000 on PyPI
nidaqmxProvides a Python API to control and acquire…
permissive · top 15,000 on PyPI