Install & Compatibility
Where this runs
tested against v2.1.13347 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 34MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.9s · import 0.000s · 35MB
32MB installed
● package 32MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
YAPI
✓ from yoctopuce import YAPI
✗ from yoctopuce.yapi import YAPI
Quickstart to list first Yoctopuce sensor. Preregister 'usb' for USB, or an IP address for networked hubs.
from yoctopuce.yapi import YAPI
from yoctopuce.ysensor import YSensor
# Register a hub (adjust as needed)
YAPI.PreregisterHub('usb')
# Use default hub URL 'usb' for USB devices
YAPI.RegisterHub('usb')
sensor = YSensor.FirstSensor()
if sensor:
print(f"Sensor: {sensor.get_friendlyName()}, value: {sensor.get_currentValue()}")
YAPI.FreeAPI()
Upgrade
Version history
2.1.13347latest on PyPI · released May 18, 2026
Audit
Dependencies
No dependency data recorded yet.