numato-gpio
Python API for Numato GPIO Expanders
What it is and what it does
numato-gpio is a Python driver for Numato's USB GPIO expander hardware. It lets you configure individual ports as inputs or outputs, read and write digital logic levels, sample analog values from ADC inputs, and register callbacks to respond to rising or falling edges on input ports. The package wraps serial communication with these devices and exposes a straightforward procedural API—you instantiate a device object pointing to its USB serial port, then call methods to set up pins and perform I/O operations.
The package depends on pyserial for USB communication and rich for terminal output. It supports Python 3.9 through 3.13 and is tested on Linux; Windows support exists but is less thoroughly validated. The maintainer notes that discovery is currently limited to Linux /dev/ttyACM* devices, and there is no async API yet. The codebase has been in use in Home Assistant integrations since 2018, though the author acknowledges room for improvement in documentation and API design.
Use it for:
- Control relay banks or LED arrays via USB from a Python application without dedicated GPIO hardware.
- Read analog sensor inputs through the ADC ports on Numato expanders in a lab or embedded system.
- Implement event-driven logic that responds to button presses or sensor state changes via edge-detection callbacks.
- Integrate GPIO control into Home Assistant or other home automation platforms running on a PC or Raspberry Pi.
- Prototype hardware interfaces quickly without writing low-level serial code or learning a vendor SDK.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a Python API to control Numato USB GPIO expander devices with 8, 16, 32, 64, or 128 ports, supporting digital I/O, ADC reads, and edge-detection callbacks.
Yes, if you own a Numato USB GPIO expander and need Python control on Linux. The package is stable, permissively licensed, has no known vulnerabilities, and low install friction. Maintenance is aging but active. Not suitable if you need async I/O, Windows-only deployment, or support for other GPIO hardware.
Install
numato-gpio on PyPI
pip
pip install numato-gpiouv
uv add numato-gpiopoetry
poetry add numato-gpioInstalling numato-gpio
Before you install
Low friction installation with only two runtime dependencies (pyserial and rich). Package is aging but still maintained; last commit was recent and no vulnerabilities reported.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions—suitable for most projects including commercial work.
Quickstart
pip install numato-gpio
import numato_gpio as gpio
dev = gpio.NumatoUsbGpio("/dev/ttyACM0")
dev.setup(4, gpio.OUT)
dev.write(4, value=1)
Requires a Numato USB GPIO device connected and accessible via /dev/ttyACM* on Linux (or COM* on Windows); user must have read/write permissions to the device file.
Verify before relying
- Whether Windows support is fully functional or limited compared to Linux
- Current state of async API availability beyond the known limitation noted in docs
- Compatibility with Numato devices beyond the 8/16/32/64/128-port models listed
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<3.14,>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pyserial, rich |
| Maintenance | aging — 472 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 75,468/month — #14,709 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: numato_gpio-0.14.0-py3-none-any.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
RPi.GPIORPi.GPIO provides Python control over Raspberry…
permissive · top 15,000 on PyPI
zigpy-zigateProvides a Python 3 driver for ZiGate Zigbee…
copyleft · top 15,000 on PyPI
libusbsioProvides a Python wrapper around NXP's…
permissive · top 15,000 on PyPI
pigpioProvides Python access to the pigpio daemon for…
permissive · top 15,000 on PyPI
pyftdiPyFtdi provides a pure-Python user-space driver…
permissive · top 15,000 on PyPI
ft4222Provides Python bindings to LibFT4222, enabling…
permissive · top 15,000 on PyPI
gpiodPython bindings for libgpiod, the official…
copyleft · top 15,000 on PyPI
usb-devicesMaps, describes, and resets USB devices on a…
permissive · top 15,000 on PyPI
gpiozerogpiozero provides a high-level Python interface…
permissive · top 15,000 on PyPI