skillfed

phidget22

Phidget22 Python wrapper library

phidget22 v1.25.20260408 613.8K downloads/30d#5,751 on PyPI
Permissive license BSD-3-Clause Active released

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 phidget22

uv

uv add phidget22

poetry

poetry add phidget22

Installing 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

License :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2Programming Language :: Python :: 3

Tags

phidget hardware control pythonphidget sensor interface libraryphidget usb device communicationphidget22 python bindingsphidget data acquisitionembedded device control python
hardware-controliotsensor-interface

More Software Development packages